<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: sftp can't log in. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283779#M474693</link>
    <description>You need to configure ssh for the user.&lt;BR /&gt;Have you created key file by running ssh-keygen -t dsa?  to generate private key ?&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 02 Jun 2011 20:19:14 GMT</pubDate>
    <dc:creator>Uday_S_Ankolekar</dc:creator>
    <dc:date>2011-06-02T20:19:14Z</dc:date>
    <item>
      <title>sftp can't log in.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283777#M474691</link>
      <description>This is HP-UX 11.11.&lt;BR /&gt;&lt;BR /&gt;I have a remote office that wants to use sftp to place a file on this server at my office.&lt;BR /&gt;&lt;BR /&gt;I created a restricted ftp user that was restricted to their home directory.  I was hoping that restricted ftp user on my side would jail the outside user when they log in.&lt;BR /&gt;&lt;BR /&gt;However, when I test, sftp asks for the password of the user I put on the command line, but that password will not log them in.  Plain old ftp works as it's intended.&lt;BR /&gt;&lt;BR /&gt;I ran sftp with -v and it looks like sftp is comparing keys and recognized my root key instead of the sftp user's password.&lt;BR /&gt;&lt;BR /&gt;I'm guessing I either went about this all wrong, or I need to change to allow password authentication in the sshd_config file?  Or will they need to send me their pub key?&lt;BR /&gt;&lt;BR /&gt;I'm using this version of OpenSSH:&lt;BR /&gt;&lt;BR /&gt;OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL&lt;BR /&gt;&lt;BR /&gt;Thanks for any help.</description>
      <pubDate>Thu, 02 Jun 2011 18:11:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283777#M474691</guid>
      <dc:creator>Johns Manville</dc:creator>
      <dc:date>2011-06-02T18:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: sftp can't log in.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283778#M474692</link>
      <description>&lt;!--!*#--&gt;&amp;gt; I created a restricted ftp user [...]&lt;BR /&gt;&lt;BR /&gt;I don't know what that means (to you).&lt;BR /&gt;&lt;BR /&gt;Except for the similar spelling, SFTP and FTP&lt;BR /&gt;are very different, and the configuration of&lt;BR /&gt;one has very little to do with the&lt;BR /&gt;configuration of the other.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I ran sftp [...] it looks like [...]&lt;BR /&gt;&lt;BR /&gt;That tells me approximately nothing. As&lt;BR /&gt;usual, showing actual commands with their&lt;BR /&gt;actual output can be more helpful than vague&lt;BR /&gt;descriptions or interpretations.  What is&lt;BR /&gt;the SFTP client?  Running on what?  As which&lt;BR /&gt;user?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I'm guessing [...]&lt;BR /&gt;&lt;BR /&gt;With almost no useful information to work&lt;BR /&gt;with, that's about all I can do, too.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; OpenSSH_3.6.1p2, [...]&lt;BR /&gt;&lt;BR /&gt;It may not matter, but that's not the latest&lt;BR /&gt;kit, is it?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Thanks for any help.&lt;BR /&gt;&lt;BR /&gt;You first.  What, exactly, are you doing?&lt;BR /&gt;What, exactly, happens when you do it?</description>
      <pubDate>Thu, 02 Jun 2011 20:10:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283778#M474692</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-06-02T20:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: sftp can't log in.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283779#M474693</link>
      <description>You need to configure ssh for the user.&lt;BR /&gt;Have you created key file by running ssh-keygen -t dsa?  to generate private key ?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Jun 2011 20:19:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283779#M474693</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2011-06-02T20:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: sftp can't log in.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283780#M474694</link>
      <description>Yes I created an ssh key with ssh-keygen -t rsa for the new user that will access the account.  I added that to the authorized_user file on the target server.&lt;BR /&gt;&lt;BR /&gt;Here is the output with a -v added for verbose output:&lt;BR /&gt;&lt;BR /&gt;$ sftp -v username@hpux41&lt;BR /&gt;Connecting to hpux41...&lt;BR /&gt;OpenSSH_4.3p2-hpn, OpenSSL 0.9.7i 14 Oct 2005&lt;BR /&gt;HP-UX Secure Shell-A.04.30.007, HP-UX Secure Shell version&lt;BR /&gt;debug1: Reading configuration data /opt/ssh/etc/ssh_config&lt;BR /&gt;debug1: Connecting to hpux41 [166.92.13.147] port 22.&lt;BR /&gt;debug1: Connection established.&lt;BR /&gt;debug1: identity file /home/username/.ssh/id_rsa type 1&lt;BR /&gt;debug1: identity file /home/username/.ssh/id_dsa type -1&lt;BR /&gt;debug1: Remote protocol version 2.0, remote software version OpenSSH_3.6.1p2&lt;BR /&gt;debug1: match: OpenSSH_3.6.1p2 pat OpenSSH_3.*&lt;BR /&gt;debug1: Enabling compatibility mode for protocol 2.0&lt;BR /&gt;debug1: Local version string SSH-2.0-OpenSSH_4.3p2-hpn&lt;BR /&gt;debug1: SSH2_MSG_KEXINIT sent&lt;BR /&gt;debug1: SSH2_MSG_KEXINIT received&lt;BR /&gt;debug1: kex: server-&amp;gt;client aes128-cbc hmac-md5 none&lt;BR /&gt;debug1: kex: client-&amp;gt;server aes128-cbc hmac-md5 none&lt;BR /&gt;debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024&amp;lt;1024&amp;lt;8192) sent&lt;BR /&gt;debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP&lt;BR /&gt;debug1: SSH2_MSG_KEX_DH_GEX_INIT sent&lt;BR /&gt;debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY&lt;BR /&gt;debug1: Host 'hpux41' is known and matches the RSA host key.&lt;BR /&gt;debug1: Found key in /home/username/.ssh/known_hosts:1&lt;BR /&gt;debug1: ssh_rsa_verify: signature correct&lt;BR /&gt;debug1: SSH2_MSG_NEWKEYS sent&lt;BR /&gt;debug1: expecting SSH2_MSG_NEWKEYS&lt;BR /&gt;debug1: SSH2_MSG_NEWKEYS received&lt;BR /&gt;debug1: SSH2_MSG_SERVICE_REQUEST sent&lt;BR /&gt;debug1: SSH2_MSG_SERVICE_ACCEPT received&lt;BR /&gt;debug1: Authentications that can continue: external-keyx,gssapi,publickey,password,keyboard-interactive&lt;BR /&gt;debug1: Next authentication method: publickey&lt;BR /&gt;debug1: Offering public key: /home/username/.ssh/id_rsa&lt;BR /&gt;debug1: Authentications that can continue: external-keyx,gssapi,publickey,password,keyboard-interactive&lt;BR /&gt;debug1: Trying private key: /home/username/.ssh/id_dsa&lt;BR /&gt;debug1: Next authentication method: keyboard-interactive&lt;BR /&gt;debug1: Authentications that can continue: external-keyx,gssapi,publickey,password,keyboard-interactive&lt;BR /&gt;debug1: Next authentication method: password&lt;BR /&gt;username@hpux41's password:&lt;BR /&gt;debug1: Authentications that can continue: external-keyx,gssapi,publickey,password,keyboard-interactive&lt;BR /&gt;Permission denied, please try again.&lt;BR /&gt;username@hpux41's password:</description>
      <pubDate>Thu, 02 Jun 2011 21:48:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283780#M474694</guid>
      <dc:creator>Johns Manville</dc:creator>
      <dc:date>2011-06-02T21:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: sftp can't log in.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283781#M474695</link>
      <description>&lt;!--!*#--&gt;&amp;gt;  Yes I created [...]&lt;BR /&gt;&lt;BR /&gt;Still not exactly rich in details on the&lt;BR /&gt;preparation.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; $ sftp -v username@hpux41&lt;BR /&gt;&amp;gt; [...]&lt;BR /&gt;&lt;BR /&gt;It's a start.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; debug1: Trying private key: /home/username/.ssh/id_dsa&lt;BR /&gt;&amp;gt; debug1: Next authentication method: keyboard-interactive&lt;BR /&gt;&lt;BR /&gt;The server appears to hate your key data.  As&lt;BR /&gt;a Forum search for SSH/SFTP problems would&lt;BR /&gt;probably reveal, this could be caused by many&lt;BR /&gt;things.  Among the most popular might be bad&lt;BR /&gt;key data, or bad file or directory ownership&lt;BR /&gt;or permissions.  With only my weak psychic&lt;BR /&gt;powers to work with, it's hard to offer&lt;BR /&gt;specific suggestions.  In such a situation,&lt;BR /&gt;the server knows all, but tells the client&lt;BR /&gt;little.  Inspecting the server system log&lt;BR /&gt;file(s) should provide the reason for the&lt;BR /&gt;log-in failure (or at least some suggestive&lt;BR /&gt;clues).</description>
      <pubDate>Fri, 03 Jun 2011 01:03:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283781#M474695</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-06-03T01:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: sftp can't log in.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283782#M474696</link>
      <description>You wrote:&lt;BR /&gt;Yes I created an ssh key with ssh-keygen -t rsa for the new user that will access the account. I added that to the authorized_user file on the target server.&lt;BR /&gt;&lt;BR /&gt;Did you add the key into a file named authorized_user or authorized_keys&lt;BR /&gt;&lt;BR /&gt;If it was authorized_user then that is wrong, it should be authorized_keys</description>
      <pubDate>Fri, 03 Jun 2011 01:24:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283782#M474696</guid>
      <dc:creator>Steven1970</dc:creator>
      <dc:date>2011-06-03T01:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: sftp can't log in.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283783#M474697</link>
      <description>&lt;!--!*#--&gt;&amp;gt; Did you add the key into a file named&lt;BR /&gt;&amp;gt; authorized_user or authorized_keys [?]&lt;BR /&gt;&lt;BR /&gt;Again, copy+paste of an actual "ls -l"&lt;BR /&gt;command with its actual output would be more&lt;BR /&gt;useful than a vague and/or inaccurate&lt;BR /&gt;description.  Just a thought.</description>
      <pubDate>Fri, 03 Jun 2011 03:13:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283783#M474697</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-06-03T03:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: sftp can't log in.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283784#M474698</link>
      <description>It should be authorized_keys as mentioned in above post. Also look for the permission and ownership  of .ssh dir</description>
      <pubDate>Fri, 03 Jun 2011 12:19:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283784#M474698</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2011-06-03T12:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: sftp can't log in.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283785#M474699</link>
      <description># ls -l&lt;BR /&gt;total 6&lt;BR /&gt;-rw-------   1 username   ftponly        397 Jun  3 06:38 authorized_keys&lt;BR /&gt;-rw-------   1 username   ftponly        887 Jun  3 06:31 id_rsa&lt;BR /&gt;-rw-r--r--   1 username   ftponly        225 Jun  3 06:31 id_rsa.pub</description>
      <pubDate>Fri, 03 Jun 2011 13:20:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283785#M474699</guid>
      <dc:creator>Johns Manville</dc:creator>
      <dc:date>2011-06-03T13:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: sftp can't log in.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283786#M474700</link>
      <description>Are there any errors in the /var/adm/syslog/syslog.log file on the server your are trying to sftp to?</description>
      <pubDate>Fri, 03 Jun 2011 13:25:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283786#M474700</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2011-06-03T13:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: sftp can't log in.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283787#M474701</link>
      <description>No, none.</description>
      <pubDate>Fri, 03 Jun 2011 13:28:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283787#M474701</guid>
      <dc:creator>Johns Manville</dc:creator>
      <dc:date>2011-06-03T13:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: sftp can't log in.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283788#M474702</link>
      <description>where did you create the keys ? ON your server side or on the client side ? &lt;BR /&gt;&lt;BR /&gt;you said it looks like it is recognizing your root key's instead of sftp user's keys. Are you sure you are initiating the connection after logging in to (or su'ing into) this sftp user with a "-", as in 'su - sftpuser', if you do, what you are telling about root's keys, doesn't make an iota of sense.&lt;BR /&gt;&lt;BR /&gt;Last but not the least, if you created the key par, are you absolutely sure that you sent the private portion of the key to the client side and they placed it in the proper directory with the proper permissions. What you gave answers to, above, seems like the directory listings from the server and your problem is most probably residing on the client (i.e. remote) site.&lt;BR /&gt;&lt;BR /&gt;Do you have access to this remote office server ? If so, can you check the ownership and permissions of .ssh directory and the files underneath it ?</description>
      <pubDate>Fri, 03 Jun 2011 13:50:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283788#M474702</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2011-06-03T13:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: sftp can't log in.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283789#M474703</link>
      <description>&lt;!--!*#--&gt;&amp;gt; # ls -l&lt;BR /&gt;&amp;gt; [...]&lt;BR /&gt;&lt;BR /&gt;Great.  Now, if I could guess where you were&lt;BR /&gt;when you did that, then I might know&lt;BR /&gt;something useful.&lt;BR /&gt;&lt;BR /&gt;There are two computers involved here, the&lt;BR /&gt;SFTP client and the SFTP server.  (Or, for&lt;BR /&gt;testing purposes, perhaps one computer in two&lt;BR /&gt;roles, but exactly what you're doing where is &lt;BR /&gt;unclear.)  The non-psychics in your audience&lt;BR /&gt;don't know where you're doing these things,&lt;BR /&gt;or as which user, or much else, unless you&lt;BR /&gt;reveal the relevant facts.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I'm using this version of OpenSSH:&lt;BR /&gt;&amp;gt; &lt;BR /&gt;&amp;gt; OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL&lt;BR /&gt;&lt;BR /&gt;&amp;gt; $ sftp -v username@hpux41&lt;BR /&gt;&amp;gt; Connecting to hpux41...&lt;BR /&gt;&amp;gt; OpenSSH_4.3p2-hpn, OpenSSL 0.9.7i 14 Oct 2005&lt;BR /&gt;&lt;BR /&gt;And some of the things you say seem, well,&lt;BR /&gt;inconsistent?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; No, none.&lt;BR /&gt;&lt;BR /&gt;Really?  I know nothing, but I've never seen&lt;BR /&gt;an ssh/sftp login failure which left no&lt;BR /&gt;evidence in the system log file on the&lt;BR /&gt;server.  Worst case, it is possible to run&lt;BR /&gt;the server daemon with a debug/verbose&lt;BR /&gt;option, which might tell you more.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] will they need to send me their pub&lt;BR /&gt;&amp;gt; key? [...]&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] sent the private portion of the key&lt;BR /&gt;&amp;gt; to the client [...]&lt;BR /&gt;&lt;BR /&gt;Many things are possible, but normally, the&lt;BR /&gt;key pair is generated at the client end, and&lt;BR /&gt;the public key is sent to the server end&lt;BR /&gt;(keeping the client's private key data&lt;BR /&gt;private).</description>
      <pubDate>Fri, 03 Jun 2011 16:43:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283789#M474703</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-06-03T16:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: sftp can't log in.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283790#M474704</link>
      <description>OK.  A useful person informed me that sftp does not have the capability to chroot or jail the user until OpenSSH version 5.  That pretty much answers this question.&lt;BR /&gt;&lt;BR /&gt;I apologize for not being more clear in my questions.  Unfortunately, I swamped and have to help, so I wasn't as careful or detailed as I could have been.  I usually do better.&lt;BR /&gt;&lt;BR /&gt;I want to thank those of you who tried to be helpful without being demeaning.  I will score him with a 0.</description>
      <pubDate>Fri, 03 Jun 2011 17:21:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283790#M474704</guid>
      <dc:creator>Johns Manville</dc:creator>
      <dc:date>2011-06-03T17:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: sftp can't log in.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283791#M474705</link>
      <description>Chroot or jail capability is not available for sftp until OpenSSH version 5.</description>
      <pubDate>Fri, 03 Jun 2011 17:23:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283791#M474705</guid>
      <dc:creator>Johns Manville</dc:creator>
      <dc:date>2011-06-03T17:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: sftp can't log in.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283792#M474706</link>
      <description>&lt;!--!*#--&gt;&amp;gt;  OK. A useful person informed me that sftp&lt;BR /&gt;&amp;gt; does not have the capability to chroot or&lt;BR /&gt;&amp;gt; jail the user until OpenSSH version 5.&lt;BR /&gt;&lt;BR /&gt;And we knew that you were trying to do this&lt;BR /&gt;because you told us where?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Unfortunately, I swamped [...]&lt;BR /&gt;&lt;BR /&gt;Not too busy to waste other people's time,&lt;BR /&gt;though.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] demeaning.&lt;BR /&gt;&lt;BR /&gt;If asking for a clear exposition of a problem&lt;BR /&gt;is demeaning, then count me in every time.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;  I will score him with a 0.&lt;BR /&gt;&lt;BR /&gt;The pain, the pain...</description>
      <pubDate>Fri, 03 Jun 2011 17:35:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-can-t-log-in/m-p/5283792#M474706</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-06-03T17:35:11Z</dc:date>
    </item>
  </channel>
</rss>

