<?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 SFTP - Public key is not working in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-public-key-is-not-working/m-p/3380788#M747360</link>
    <description>Hello all :)&lt;BR /&gt;&lt;BR /&gt;I'm using sftp from a unix box (AIX) going to a windows NT box (running f-secure ssh suite server). I can login fine by providing a password. I setup the private and public key using ssh-keygen, then put my public key on the remote box into my home directory into .ssh2 and named the public key authorized_keys. Yet I'm still prompted for the password (not pass phrase) when I login.&lt;BR /&gt;&lt;BR /&gt;Thanks to all for your help!&lt;BR /&gt;&lt;BR /&gt;Below is the sftp log generated while I'm connecting. Where the problem might be local or remote host? I'm puzzled at this point.&lt;BR /&gt;&lt;BR /&gt;$ sftp -v user@destination.nt.host&lt;BR /&gt;Connecting to destination.nt.host...&lt;BR /&gt;OpenSSH_3.8p1+sftplogging-v1.2, SSH protocols 1.5/2.0, OpenSSL 0.9.7d 17 Mar 2004&lt;BR /&gt;debug1: Reading configuration data /opt/ssh/etc//ssh_config&lt;BR /&gt;debug1: Applying options for *&lt;BR /&gt;debug1: Connecting to destination.nt.host [destination.nt.host] port 22.&lt;BR /&gt;debug1: Connection established.&lt;BR /&gt;debug1: identity file /ftp/v/f/00/00/local_user/.ssh/id_rsa type 1&lt;BR /&gt;debug1: identity file /ftp/v/f/00/00/local_user/.ssh/id_dsa type -1&lt;BR /&gt;debug1: Remote protocol version 2.0, remote software version 3.2.0 F-Secure SSH Windows NT S&lt;BR /&gt;erver&lt;BR /&gt;debug1: no match: 3.2.0 F-Secure SSH Windows NT Server&lt;BR /&gt;debug1: Enabling compatibility mode for protocol 2.0&lt;BR /&gt;debug1: Local version string SSH-2.0-OpenSSH_3.8p1+sftplogging-v1.2&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: sending SSH2_MSG_KEXDH_INIT&lt;BR /&gt;debug1: expecting SSH2_MSG_KEXDH_REPLY&lt;BR /&gt;debug1: Host 'destination.nt.host' is known and matches the DSA host key.&lt;BR /&gt;debug1: Found key in /ftp/v/f/00/00/local_user/.ssh/known_hosts:1&lt;BR /&gt;debug1: ssh_dss_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: publickey,password&lt;BR /&gt;debug1: Next authentication method: publickey&lt;BR /&gt;debug1: Offering public key: /ftp/v/f/00/00/local_user/.ssh/id_rsa&lt;BR /&gt;debug1: Authentications that can continue: publickey,password&lt;BR /&gt;debug1: Trying private key: /ftp/v/f/00/00/local_user/.ssh/id_dsa&lt;BR /&gt;debug1: Next authentication method: password&lt;BR /&gt;user@destination.nt.host's password:&lt;BR /&gt;debug1: Authentication succeeded (password).</description>
    <pubDate>Thu, 16 Sep 2004 17:30:26 GMT</pubDate>
    <dc:creator>Mike_781</dc:creator>
    <dc:date>2004-09-16T17:30:26Z</dc:date>
    <item>
      <title>SFTP - Public key is not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-public-key-is-not-working/m-p/3380788#M747360</link>
      <description>Hello all :)&lt;BR /&gt;&lt;BR /&gt;I'm using sftp from a unix box (AIX) going to a windows NT box (running f-secure ssh suite server). I can login fine by providing a password. I setup the private and public key using ssh-keygen, then put my public key on the remote box into my home directory into .ssh2 and named the public key authorized_keys. Yet I'm still prompted for the password (not pass phrase) when I login.&lt;BR /&gt;&lt;BR /&gt;Thanks to all for your help!&lt;BR /&gt;&lt;BR /&gt;Below is the sftp log generated while I'm connecting. Where the problem might be local or remote host? I'm puzzled at this point.&lt;BR /&gt;&lt;BR /&gt;$ sftp -v user@destination.nt.host&lt;BR /&gt;Connecting to destination.nt.host...&lt;BR /&gt;OpenSSH_3.8p1+sftplogging-v1.2, SSH protocols 1.5/2.0, OpenSSL 0.9.7d 17 Mar 2004&lt;BR /&gt;debug1: Reading configuration data /opt/ssh/etc//ssh_config&lt;BR /&gt;debug1: Applying options for *&lt;BR /&gt;debug1: Connecting to destination.nt.host [destination.nt.host] port 22.&lt;BR /&gt;debug1: Connection established.&lt;BR /&gt;debug1: identity file /ftp/v/f/00/00/local_user/.ssh/id_rsa type 1&lt;BR /&gt;debug1: identity file /ftp/v/f/00/00/local_user/.ssh/id_dsa type -1&lt;BR /&gt;debug1: Remote protocol version 2.0, remote software version 3.2.0 F-Secure SSH Windows NT S&lt;BR /&gt;erver&lt;BR /&gt;debug1: no match: 3.2.0 F-Secure SSH Windows NT Server&lt;BR /&gt;debug1: Enabling compatibility mode for protocol 2.0&lt;BR /&gt;debug1: Local version string SSH-2.0-OpenSSH_3.8p1+sftplogging-v1.2&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: sending SSH2_MSG_KEXDH_INIT&lt;BR /&gt;debug1: expecting SSH2_MSG_KEXDH_REPLY&lt;BR /&gt;debug1: Host 'destination.nt.host' is known and matches the DSA host key.&lt;BR /&gt;debug1: Found key in /ftp/v/f/00/00/local_user/.ssh/known_hosts:1&lt;BR /&gt;debug1: ssh_dss_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: publickey,password&lt;BR /&gt;debug1: Next authentication method: publickey&lt;BR /&gt;debug1: Offering public key: /ftp/v/f/00/00/local_user/.ssh/id_rsa&lt;BR /&gt;debug1: Authentications that can continue: publickey,password&lt;BR /&gt;debug1: Trying private key: /ftp/v/f/00/00/local_user/.ssh/id_dsa&lt;BR /&gt;debug1: Next authentication method: password&lt;BR /&gt;user@destination.nt.host's password:&lt;BR /&gt;debug1: Authentication succeeded (password).</description>
      <pubDate>Thu, 16 Sep 2004 17:30:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-public-key-is-not-working/m-p/3380788#M747360</guid>
      <dc:creator>Mike_781</dc:creator>
      <dc:date>2004-09-16T17:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP - Public key is not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-public-key-is-not-working/m-p/3380789#M747361</link>
      <description>hmm...from my experience, debug1 doesnt really give enough details to troubleshoot the problem.&lt;BR /&gt;&lt;BR /&gt;First thing I would check is the permissions of authorized_keys file. SSH is very sensitive about permissions.&lt;BR /&gt;&lt;BR /&gt;try debug3, that could you tell you little more. Also enable debugging on the server side if possible&lt;BR /&gt;&lt;BR /&gt;# sftp -vvv user@host</description>
      <pubDate>Thu, 16 Sep 2004 17:40:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-public-key-is-not-working/m-p/3380789#M747361</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-09-16T17:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP - Public key is not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-public-key-is-not-working/m-p/3380790#M747362</link>
      <description>Sundar,&lt;BR /&gt;&lt;BR /&gt;The permissions on the authorized_keys file are (-rw-------).&lt;BR /&gt;&lt;BR /&gt;How to enable server level debugging? Unless I need ssh server admin priveleges, which I don't have (will have ask the remote box admin to do the server level deb. then).&lt;BR /&gt;&lt;BR /&gt;Thank you for the tips!&lt;BR /&gt;&lt;BR /&gt;Here is the log with debug3:&lt;BR /&gt;$ sftp -vvv user@destination.nt.host&lt;BR /&gt;Connecting to destination.nt.host...&lt;BR /&gt;OpenSSH_3.8p1+sftplogging-v1.2, SSH protocols 1.5/2.0, OpenSSL 0.9.7d 17 Mar 2004&lt;BR /&gt;debug1: Reading configuration data /opt/ssh/etc//ssh_config&lt;BR /&gt;debug1: Applying options for *&lt;BR /&gt;debug3: Seeding PRNG from /opt/ssh/openssh-3.8p1/libexec/ssh-rand-helper&lt;BR /&gt;debug2: ssh_connect: needpriv 0&lt;BR /&gt;debug1: Connecting to destination.nt.host [destination.nt.host] port 22.&lt;BR /&gt;debug1: Connection established.&lt;BR /&gt;debug3: Not a RSA1 key file /ftp/v/f/00/00/local_user/.ssh/id_rsa.&lt;BR /&gt;debug2: key_type_from_name: unknown key type '-----BEGIN'&lt;BR /&gt;debug3: key_read: missing keytype&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug2: key_type_from_name: unknown key type '-----END'&lt;BR /&gt;debug3: key_read: missing keytype&lt;BR /&gt;debug1: identity file /ftp/v/f/00/00/local_user/.ssh/id_rsa type 1&lt;BR /&gt;debug1: identity file /ftp/v/f/00/00/local_user/.ssh/id_dsa type -1&lt;BR /&gt;debug1: Remote protocol version 2.0, remote software version 3.2.0 F-Secure SSH Windows NT S&lt;BR /&gt;erver&lt;BR /&gt;debug1: no match: 3.2.0 F-Secure SSH Windows NT Server&lt;BR /&gt;debug1: Enabling compatibility mode for protocol 2.0&lt;BR /&gt;debug1: Local version string SSH-2.0-OpenSSH_3.8p1+sftplogging-v1.2&lt;BR /&gt;debug3: RNG is ready, skipping seeding&lt;BR /&gt;debug1: SSH2_MSG_KEXINIT sent&lt;BR /&gt;debug1: SSH2_MSG_KEXINIT received&lt;BR /&gt;debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1&lt;BR /&gt;debug2: kex_parse_kexinit: ssh-rsa,ssh-dss&lt;BR /&gt;debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,a&lt;BR /&gt;es256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr&lt;BR /&gt;debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,a&lt;BR /&gt;es256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr&lt;BR /&gt;debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac&lt;BR /&gt;-sha1-96,hmac-md5-96&lt;BR /&gt;debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac&lt;BR /&gt;-sha1-96,hmac-md5-96&lt;BR /&gt;debug2: kex_parse_kexinit: none,zlib&lt;BR /&gt;debug2: kex_parse_kexinit: none,zlib&lt;BR /&gt;debug2: kex_parse_kexinit:&lt;BR /&gt;debug2: kex_parse_kexinit:&lt;BR /&gt;debug2: kex_parse_kexinit: first_kex_follows 0&lt;BR /&gt;debug2: kex_parse_kexinit: reserved 0&lt;BR /&gt;debug2: kex_parse_kexinit: diffie-hellman-group1-sha1&lt;BR /&gt;debug2: kex_parse_kexinit: ssh-dss&lt;BR /&gt;debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,twofish128-cbc,cast128-cbc,twofish-cbc,blowfi&lt;BR /&gt;sh-cbc,aes192-cbc,aes256-cbc,twofish192-cbc,twofish256-cbc,arcfour&lt;BR /&gt;debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,twofish128-cbc,cast128-cbc,twofish-cbc,blowfi&lt;BR /&gt;sh-cbc,aes192-cbc,aes256-cbc,twofish192-cbc,twofish256-cbc,arcfour&lt;BR /&gt;debug2: kex_parse_kexinit: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96&lt;BR /&gt;debug2: kex_parse_kexinit: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96&lt;BR /&gt;debug2: kex_parse_kexinit: none,zlib&lt;BR /&gt;debug2: kex_parse_kexinit: none,zlib&lt;BR /&gt;debug2: kex_parse_kexinit:&lt;BR /&gt;debug2: kex_parse_kexinit:&lt;BR /&gt;debug2: kex_parse_kexinit: first_kex_follows 0&lt;BR /&gt;debug2: kex_parse_kexinit: reserved 0&lt;BR /&gt;debug2: mac_init: found hmac-md5&lt;BR /&gt;debug1: kex: server-&amp;gt;client aes128-cbc hmac-md5 none&lt;BR /&gt;debug2: mac_init: found hmac-md5&lt;BR /&gt;debug1: kex: client-&amp;gt;server aes128-cbc hmac-md5 none&lt;BR /&gt;debug2: dh_gen_key: priv key bits set: 118/256&lt;BR /&gt;debug2: bits set: 538/1024&lt;BR /&gt;debug1: sending SSH2_MSG_KEXDH_INIT&lt;BR /&gt;ebug1: expecting SSH2_MSG_KEXDH_REPLY&lt;BR /&gt;debug3: check_host_in_hostfile: filename /ftp/v/f/00/00/local_user/.ssh/known_hosts&lt;BR /&gt;debug3: check_host_in_hostfile: match line 1&lt;BR /&gt;debug1: Host 'destination.nt.host' is known and matches the DSA host key.&lt;BR /&gt;debug1: Found key in /ftp/v/f/00/00/local_user/.ssh/known_hosts:1&lt;BR /&gt;debug2: bits set: 515/1024&lt;BR /&gt;debug1: ssh_dss_verify: signature correct&lt;BR /&gt;debug2: kex_derive_keys&lt;BR /&gt;debug2: set_newkeys: mode 1&lt;BR /&gt;debug1: SSH2_MSG_NEWKEYS sent&lt;BR /&gt;debug1: expecting SSH2_MSG_NEWKEYS&lt;BR /&gt;debug2: set_newkeys: mode 0&lt;BR /&gt;debug1: SSH2_MSG_NEWKEYS received&lt;BR /&gt;debug1: SSH2_MSG_SERVICE_REQUEST sent&lt;BR /&gt;debug2: service_accept: ssh-userauth&lt;BR /&gt;debug1: SSH2_MSG_SERVICE_ACCEPT received&lt;BR /&gt;debug2: key: /ftp/v/f/00/00/local_user/.ssh/id_rsa (2006cce8)&lt;BR /&gt;debug2: key: /ftp/v/f/00/00/local_user/.ssh/id_dsa (0)&lt;BR /&gt;debug1: Authentications that can continue: publickey,password&lt;BR /&gt;debug3: start over, passed a different list publickey,password&lt;BR /&gt;debug3: preferred publickey,keyboard-interactive,password&lt;BR /&gt;debug3: authmethod_lookup publickey&lt;BR /&gt;debug3: remaining preferred: keyboard-interactive,password&lt;BR /&gt;debug3: authmethod_is_enabled publickey&lt;BR /&gt;debug1: Next authentication method: publickey&lt;BR /&gt;debug1: Offering public key: /ftp/v/f/00/00/local_user/.ssh/id_rsa&lt;BR /&gt;debug3: send_pubkey_test&lt;BR /&gt;debug2: we sent a publickey packet, wait for reply&lt;BR /&gt;debug1: Authentications that can continue: publickey,password&lt;BR /&gt;debug1: Trying private key: /ftp/v/f/00/00/local_user/.ssh/id_dsa&lt;BR /&gt;debug3: no such identity: /ftp/v/f/00/00/local_user/.ssh/id_dsa&lt;BR /&gt;debug2: we did not send a packet, disable method&lt;BR /&gt;debug3: authmethod_lookup password&lt;BR /&gt;debug3: remaining preferred: ,password&lt;BR /&gt;debug3: authmethod_is_enabled password&lt;BR /&gt;debug1: Next authentication method: password</description>
      <pubDate>Thu, 16 Sep 2004 18:24:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-public-key-is-not-working/m-p/3380790#M747362</guid>
      <dc:creator>Mike_781</dc:creator>
      <dc:date>2004-09-16T18:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP - Public key is not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-public-key-is-not-working/m-p/3380791#M747363</link>
      <description>Make sure the following:&lt;BR /&gt;&lt;BR /&gt;1. your SSH (/home/user/.ssh) directory and files have the following permissions&lt;BR /&gt;&lt;BR /&gt;chmod 755 ~/.ssh&lt;BR /&gt;chmod 644 ~/.ssh/authorized_keys&lt;BR /&gt;chmod 644 ~/.ssh/authorized_keys2&lt;BR /&gt;&lt;BR /&gt;2. The remote server should support public key authentication and enabled in sshd_config &lt;BR /&gt;file&lt;BR /&gt;&lt;BR /&gt;3. Your public key and private should have following permissions&lt;BR /&gt;&lt;BR /&gt;chmod 600 ~/.ssh/id_dsa&lt;BR /&gt;chmod 644 ~/.ssh/id_dsa.pub &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For more information &lt;BR /&gt;     try &lt;A href="http://www.openssh.com/faq.html" target="_blank"&gt;www.openssh.com/faq.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I am not sure whether F-Secure SSH supports openssh key format. Make it sure.&lt;BR /&gt;&lt;BR /&gt;Else convert your keys with help of ssh-keygen -i option and append again to remote authorized keys file&lt;BR /&gt;&lt;BR /&gt;Refer man ssh-keygen for more information&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=214170" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=214170&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Sep 2004 23:43:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-public-key-is-not-working/m-p/3380791#M747363</guid>
      <dc:creator>Michael Selvesteen_2</dc:creator>
      <dc:date>2004-09-16T23:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP - Public key is not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-public-key-is-not-working/m-p/3380792#M747364</link>
      <description>The issue has been solved!&lt;BR /&gt;&lt;BR /&gt;The remote host server admin found that openSSH public key was not compatible with F-Secure commercial SSH implementation.&lt;BR /&gt;&lt;BR /&gt;I executed the following command to create a version of the key, compatible with the commercial SSH:&lt;BR /&gt;ssh-keygen -e -f id_rsa.pub &amp;gt; id_rsa2.pub&lt;BR /&gt;&lt;BR /&gt;Than I uploaded the id_rsa2.pub to the remote host. Remote host admin in turn took this key and registered it within F-Secure SSH (not sure what this process consists of).&lt;BR /&gt;&lt;BR /&gt;Thanks to all for your tips!!!</description>
      <pubDate>Fri, 17 Sep 2004 15:14:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-public-key-is-not-working/m-p/3380792#M747364</guid>
      <dc:creator>Mike_781</dc:creator>
      <dc:date>2004-09-17T15:14:04Z</dc:date>
    </item>
  </channel>
</rss>

