<?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 issue in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-issue/m-p/4336684#M734867</link>
    <description>&lt;!--!*#--&gt;Sorry.  I checked my notes.  I did use the -e option to convert the public key.  I'll ask the Windows Admin if he sees anything in his logs.  &lt;BR /&gt;&lt;BR /&gt;Do I need to do anything with the private key on the HP-UX server?</description>
    <pubDate>Tue, 13 Jan 2009 14:46:13 GMT</pubDate>
    <dc:creator>Eric Locsin</dc:creator>
    <dc:date>2009-01-13T14:46:13Z</dc:date>
    <item>
      <title>sftp issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-issue/m-p/4336682#M734865</link>
      <description>&lt;!--!*#--&gt;My test environment:&lt;BR /&gt;HP-UX 11i server using HP-UX Secure Shell&lt;BR /&gt;Windows 2003 server using SSH Tectia Server&lt;BR /&gt;&lt;BR /&gt;I created the public/private keys with a passphrase in the HP-UX server and then converted the public key using the -i option in ssh-keygen.  Afterwards I had the Windows Admin move the public key to his Windows server.  When I try to start an sftp session, I receive the "PEM_read_PrivateKey failed" error message.  I will then need to supply both the passhrase and the password to successfuly connect.  What do I need to change to be able to sftp or scp without having to supply the passphrase or password?  For now I'm trying to avoid having to install SSH Tectia on the HP-UX servers.&lt;BR /&gt;&lt;BR /&gt;Here's the output of the session:&lt;BR /&gt;&lt;BR /&gt;$ sftp -v sftp_user@sftpserver.com&lt;BR /&gt;&lt;BR /&gt;Connecting to sftpserver.com...&lt;BR /&gt;OpenSSH_4.3p2-hpn, OpenSSL 0.9.7i 14 Oct 2005&lt;BR /&gt;HP-UX Secure Shell-A.04.30.006, HP-UX Secure Shell version&lt;BR /&gt;debug1: Reading configuration data /opt/ssh/etc/ssh_config&lt;BR /&gt;debug1: Connecting to sftpserver.com [999.999.999.999] port 22.&lt;BR /&gt;debug1: Connection established.&lt;BR /&gt;debug1: identity file /home/sshtest/.ssh/id_rsa type -1&lt;BR /&gt;debug1: identity file /home/sshtest/.ssh/id_dsa type -1&lt;BR /&gt;debug1: Remote protocol version 2.0, remote software version 6.0.1.16 SSH Tectia Server&lt;BR /&gt;debug1: no match: 6.0.1.16 SSH Tectia Server&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: sending SSH2_MSG_KEXDH_INIT&lt;BR /&gt;debug1: expecting SSH2_MSG_KEXDH_REPLY&lt;BR /&gt;debug1: Host 'sftpserver.com' is known and matches the RSA host key.&lt;BR /&gt;debug1: Found key in /home/sshtest/.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: password,publickey&lt;BR /&gt;debug1: Next authentication method: publickey&lt;BR /&gt;debug1: Trying private key: /home/sshtest/.ssh/id_rsa&lt;BR /&gt;debug1: Trying private key: /home/sshtest/.ssh/id_dsa&lt;BR /&gt;debug1: PEM_read_PrivateKey failed&lt;BR /&gt;debug1: read PEM private key done: type &lt;UNKNOWN&gt;&lt;BR /&gt;Enter passphrase for key '/home/sshtest/.ssh/id_dsa':&lt;BR /&gt;debug1: read PEM private key done: type DSA&lt;BR /&gt;debug1: Authentications that can continue: password,publickey&lt;BR /&gt;debug1: Next authentication method: password&lt;BR /&gt;sftp_user@sftpserver.com's password:&lt;BR /&gt;debug1: Authentication succeeded (password).&lt;BR /&gt;debug1: channel 0: new [client-session]&lt;BR /&gt;debug1: Entering interactive session.&lt;BR /&gt;debug1: Sending subsystem: sftp&lt;BR /&gt;&lt;/UNKNOWN&gt;</description>
      <pubDate>Tue, 13 Jan 2009 13:23:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-issue/m-p/4336682#M734865</guid>
      <dc:creator>Eric Locsin</dc:creator>
      <dc:date>2009-01-13T13:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: sftp issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-issue/m-p/4336683#M734866</link>
      <description>The fact that your client is prompting for a passphrase indicates that your client is making an attempt to use DSA key authentication. For some reason, the server is rejecting it.&lt;BR /&gt;&lt;BR /&gt;If you used the ssh-keygen command of the HP-UX Secure Shell, the correct conversion option would be -e for Export, as the key is transformed _out of_ HP-UX Secure Shell's native OpenSSH (single-line) format.&lt;BR /&gt;&lt;BR /&gt;The -i (import) option on HP-UX Secure Shell ssh-keygen is for converting Tectia-style keys to HPssh's native OpenSSH format.&lt;BR /&gt;&lt;BR /&gt;SSH Tectia Server uses a multi-line format for its public keys. Because of this, line termination characters may become an issue. You might have to run the "ux2dos" command on the exported public key before transferring it to the Windows system.&lt;BR /&gt;&lt;BR /&gt;You should ask the Windows sysadmin to take a peek into his/her system logs (Event Viewer). The log should indicate why your key was rejected.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Tue, 13 Jan 2009 14:35:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-issue/m-p/4336683#M734866</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-01-13T14:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: sftp issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-issue/m-p/4336684#M734867</link>
      <description>&lt;!--!*#--&gt;Sorry.  I checked my notes.  I did use the -e option to convert the public key.  I'll ask the Windows Admin if he sees anything in his logs.  &lt;BR /&gt;&lt;BR /&gt;Do I need to do anything with the private key on the HP-UX server?</description>
      <pubDate>Tue, 13 Jan 2009 14:46:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-issue/m-p/4336684#M734867</guid>
      <dc:creator>Eric Locsin</dc:creator>
      <dc:date>2009-01-13T14:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: sftp issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-issue/m-p/4336685#M734868</link>
      <description>&lt;!--!*#--&gt;I ran the "ux2dos" command on the exported public key and compared it the first one I sent to the Windows Admin.  It looks like there is some formating differences at the end of the lines.  I'll try using the new public key and see what happens.</description>
      <pubDate>Tue, 13 Jan 2009 14:55:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-issue/m-p/4336685#M734868</guid>
      <dc:creator>Eric Locsin</dc:creator>
      <dc:date>2009-01-13T14:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: sftp issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-issue/m-p/4336686#M734869</link>
      <description>&lt;!--!*#--&gt;No luck.  I get to ..&lt;BR /&gt;&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: gssapi-with-mic,password,publickey,keyboard-interactive&lt;BR /&gt;debug1: Next authentication method: publickey&lt;BR /&gt;debug1: Trying private key: /home/sshtest/.ssh/id_rsa&lt;BR /&gt;debug1: Trying private key: /home/sshtest/.ssh/id_dsa&lt;BR /&gt;debug1: PEM_read_PrivateKey failed&lt;BR /&gt;debug1: read PEM private key done: type &lt;UNKNOWN&gt;&lt;BR /&gt;&lt;BR /&gt;.. and then it asks for the passphrase.  Is there something that needs to be done to the private key before Tectia can accept it?&lt;/UNKNOWN&gt;</description>
      <pubDate>Tue, 13 Jan 2009 15:35:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-issue/m-p/4336686#M734869</guid>
      <dc:creator>Eric Locsin</dc:creator>
      <dc:date>2009-01-13T15:35:28Z</dc:date>
    </item>
  </channel>
</rss>

