<?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 without password in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577064#M733322</link>
    <description>I'm no ssh guru, but here are some thoughts..&lt;BR /&gt;&lt;BR /&gt;First, when you transferred the file over to your remote server ?How did you tranfer it?&lt;BR /&gt;&amp;gt;&amp;gt;I find it helps to do file exchange via ftp and set it to binary.  Sometimes the file can become corrupted if transfer is done via ascii.&lt;BR /&gt;&lt;BR /&gt;I'm sort of a vanilla kind of person, so I tend to leave the public file name as the default name.  Since that is what it sftp will default to and look for.  Just a thought.&lt;BR /&gt;&lt;BR /&gt;Last, you don't mention populating  known_host.  So either populate that, or maybe for the first connection put in the password and except the remote host.  Once your connected, then logout and see if you can reconnect passwordless.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rita</description>
    <pubDate>Wed, 03 Feb 2010 12:41:28 GMT</pubDate>
    <dc:creator>Rita C Workman</dc:creator>
    <dc:date>2010-02-03T12:41:28Z</dc:date>
    <item>
      <title>sftp without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577055#M733313</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I'm trying to set up sftp from a Linux (Ubuntu) box to HP-UX 11.31 server.&lt;BR /&gt;What I have done so far:&lt;BR /&gt;&lt;BR /&gt;On HPUX:&lt;BR /&gt;rsa-keygen -t RSA&lt;BR /&gt;&lt;BR /&gt;Copied the ~/.ssh/id_rsa.pub to Linux box and renamed to ~.ssh/authorized_keys&lt;BR /&gt;&lt;BR /&gt;But sftp still asks for the password. Is there something I have missed out ?&lt;BR /&gt;&lt;BR /&gt;-Tommy</description>
      <pubDate>Wed, 03 Feb 2010 09:48:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577055#M733313</guid>
      <dc:creator>swaggart</dc:creator>
      <dc:date>2010-02-03T09:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: sftp without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577056#M733314</link>
      <description>my dear friend , you need to give following command &lt;BR /&gt;&lt;BR /&gt;ssh-keygen -t rsa&lt;BR /&gt;&lt;BR /&gt;not rsa-keygen -t RSA&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Good luck</description>
      <pubDate>Wed, 03 Feb 2010 09:51:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577056#M733314</guid>
      <dc:creator>Jupinder Bedi</dc:creator>
      <dc:date>2010-02-03T09:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: sftp without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577057#M733315</link>
      <description>I am very sorry. That was a typo.&lt;BR /&gt;&lt;BR /&gt;I actually typed ssh-keygen -t rsa.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Feb 2010 09:54:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577057#M733315</guid>
      <dc:creator>swaggart</dc:creator>
      <dc:date>2010-02-03T09:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: sftp without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577058#M733316</link>
      <description>Hi Tommy,&lt;BR /&gt;&lt;BR /&gt;Are you able to doe ssh with out password??&lt;BR /&gt;&lt;BR /&gt;post ssh -vvv &lt;HOST&gt; and post the messages&lt;BR /&gt;&lt;BR /&gt;Johnson&lt;/HOST&gt;</description>
      <pubDate>Wed, 03 Feb 2010 09:56:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577058#M733316</guid>
      <dc:creator>johnsonpk</dc:creator>
      <dc:date>2010-02-03T09:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: sftp without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577059#M733317</link>
      <description>No login without password with ssh either.&lt;BR /&gt;&lt;BR /&gt;Se attached output from ssh -vvv&lt;BR /&gt;&lt;BR /&gt;-Tommy</description>
      <pubDate>Wed, 03 Feb 2010 11:18:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577059#M733317</guid>
      <dc:creator>swaggart</dc:creator>
      <dc:date>2010-02-03T11:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: sftp without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577060#M733318</link>
      <description>have you check the permission of .ssh/authorized_keys&lt;BR /&gt;&lt;BR /&gt;it should be &lt;BR /&gt;&lt;BR /&gt;chmod 600 /.ssh/authorized_keys&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Feb 2010 11:35:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577060#M733318</guid>
      <dc:creator>Jupinder Bedi</dc:creator>
      <dc:date>2010-02-03T11:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: sftp without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577061#M733319</link>
      <description>Yes, file permissions are correct&lt;BR /&gt;&lt;BR /&gt;-rw-------</description>
      <pubDate>Wed, 03 Feb 2010 11:42:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577061#M733319</guid>
      <dc:creator>swaggart</dc:creator>
      <dc:date>2010-02-03T11:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: sftp without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577062#M733320</link>
      <description>On remote server&lt;BR /&gt;&lt;BR /&gt;it seems public key authentication is disabled &lt;BR /&gt;check for "PubkeyAuthentication" entry in /etc/opt/ssh/sshd_config &lt;BR /&gt;&lt;BR /&gt;make it as "yes" and restart ssh service&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/secsh stop&lt;BR /&gt;/sbin/init.d/secsh start&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Johnson</description>
      <pubDate>Wed, 03 Feb 2010 11:43:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577062#M733320</guid>
      <dc:creator>johnsonpk</dc:creator>
      <dc:date>2010-02-03T11:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: sftp without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577063#M733321</link>
      <description>That was the first thing I changed:&lt;BR /&gt;&lt;BR /&gt;RSAAuthentication yes&lt;BR /&gt;PubkeyAuthentication yes&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Feb 2010 11:50:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577063#M733321</guid>
      <dc:creator>swaggart</dc:creator>
      <dc:date>2010-02-03T11:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: sftp without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577064#M733322</link>
      <description>I'm no ssh guru, but here are some thoughts..&lt;BR /&gt;&lt;BR /&gt;First, when you transferred the file over to your remote server ?How did you tranfer it?&lt;BR /&gt;&amp;gt;&amp;gt;I find it helps to do file exchange via ftp and set it to binary.  Sometimes the file can become corrupted if transfer is done via ascii.&lt;BR /&gt;&lt;BR /&gt;I'm sort of a vanilla kind of person, so I tend to leave the public file name as the default name.  Since that is what it sftp will default to and look for.  Just a thought.&lt;BR /&gt;&lt;BR /&gt;Last, you don't mention populating  known_host.  So either populate that, or maybe for the first connection put in the password and except the remote host.  Once your connected, then logout and see if you can reconnect passwordless.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rita</description>
      <pubDate>Wed, 03 Feb 2010 12:41:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577064#M733322</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2010-02-03T12:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: sftp without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577065#M733323</link>
      <description>Haven't done anything with known_hosts, but have tried to log in 'manually' and used the password the first time.&lt;BR /&gt;Logged out again, but no success.</description>
      <pubDate>Wed, 03 Feb 2010 12:49:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577065#M733323</guid>
      <dc:creator>swaggart</dc:creator>
      <dc:date>2010-02-03T12:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: sftp without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577066#M733324</link>
      <description>&lt;!--!*#--&gt;&amp;gt; debug1: Host 'hpux_host' is known and matches the RSA host key.&lt;BR /&gt;&amp;gt; debug1: Found key in /home/XXXXX/.ssh/known_hosts:49&lt;BR /&gt;&amp;gt; debug2: bits set: 500/1024&lt;BR /&gt;&amp;gt; debug1: ssh_rsa_verify: signature correct&lt;BR /&gt;&lt;BR /&gt;Stop worrying about "known_hosts".&lt;BR /&gt;&lt;BR /&gt;&amp;gt; debug1: Trying private key: /home/XXXXX/.ssh/identity&lt;BR /&gt;&amp;gt; debug3: no such identity: /home/XXXXX/.ssh/identity&lt;BR /&gt;&lt;BR /&gt;I'd probably do:&lt;BR /&gt;&lt;BR /&gt;      ln -s id_rsa /home/XXXXX/.ssh/identity&lt;BR /&gt;&lt;BR /&gt;&amp;gt; debug1: Offering public key: /home/XXXXX/.ssh/id_rsa&lt;BR /&gt;&lt;BR /&gt;but it seems to try the thing eventually.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; debug2: we sent a publickey packet, wait for reply&lt;BR /&gt;&amp;gt; debug1: Authentications that can continue: publickey,password,keyboard-interactive&lt;BR /&gt;&amp;gt; debug1: Trying private key: /home/XXXXX/.ssh/id_dsa&lt;BR /&gt;&lt;BR /&gt;Apparently the server did not like that key.&lt;BR /&gt;&lt;BR /&gt;Have you looked at the system log file(s) on&lt;BR /&gt;the HP-UX (server) system?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; On HPUX:&lt;BR /&gt;&amp;gt; rsa-keygen -t RSA&lt;BR /&gt;&amp;gt; &lt;BR /&gt;&amp;gt; Copied the ~/.ssh/id_rsa.pub to Linux box&lt;BR /&gt;&amp;gt; and renamed to ~.ssh/authorized_keys&lt;BR /&gt;&lt;BR /&gt;&amp;gt; OpenSSH_5.1p1 Debian-5ubuntu1, OpenSSL 0.9.8g 19 Oct 2007&lt;BR /&gt;&lt;BR /&gt;But you seem to be running ssh on the Linux&lt;BR /&gt;system.  Don't you want the public key file&lt;BR /&gt;on the _server_ system, and the private key&lt;BR /&gt;on the _client_?  Or do _I_ have everything&lt;BR /&gt;backward?</description>
      <pubDate>Wed, 03 Feb 2010 13:37:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577066#M733324</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-02-03T13:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: sftp without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577067#M733325</link>
      <description>I might have confused you here.&lt;BR /&gt;&lt;BR /&gt;My goal is to sftp from my Linux box (or from another UX-server later) to the HP-UX server. &lt;BR /&gt;&lt;BR /&gt;&amp;gt;I'd probably do:&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;     ln -s id_rsa /home/XXXXX/.ssh/identity&lt;BR /&gt;&lt;BR /&gt;I have not copied the id_rsa file from the server, only id_rsa.pub.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Have you looked at the system log file(s) on&lt;BR /&gt;the HP-UX (server) system?&lt;BR /&gt;&lt;BR /&gt;Probably found something there:&lt;BR /&gt;Authentication refused: bad ownership or modes for directory ...............</description>
      <pubDate>Wed, 03 Feb 2010 13:57:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577067#M733325</guid>
      <dc:creator>swaggart</dc:creator>
      <dc:date>2010-02-03T13:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: sftp without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577068#M733326</link>
      <description>&lt;!--!*#--&gt;&amp;gt; I might have confused you here.&lt;BR /&gt;&lt;BR /&gt;It's easy to do.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Authentication refused: bad ownership or modes for directory ...............&lt;BR /&gt;&lt;BR /&gt;Looks like a problem.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I have not copied the id_rsa file from the&lt;BR /&gt;&amp;gt; server, only id_rsa.pub.&lt;BR /&gt;&lt;BR /&gt;However, my (dim) understanding of public-key&lt;BR /&gt;authorization is that one keeps his private&lt;BR /&gt;key private, that is, on the client, and he&lt;BR /&gt;sends his public key to the (remote) server.&lt;BR /&gt;With symmetric keys and clever software, it's&lt;BR /&gt;possible to use the keys in reverse, which&lt;BR /&gt;seems (to me) to be what you're doing.  (Key&lt;BR /&gt;pairs normally being created on the client,&lt;BR /&gt;so that the private key stays private.)&lt;BR /&gt;&lt;BR /&gt;But, as I said, _I_ could be the one who's&lt;BR /&gt;doing everything backward.  (But I suspect&lt;BR /&gt;that it's you.)</description>
      <pubDate>Wed, 03 Feb 2010 14:06:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577068#M733326</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-02-03T14:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: sftp without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577069#M733327</link>
      <description>As Steven already suggested...&lt;BR /&gt;&lt;BR /&gt;If you wish to connect _from_ Linux _to_ HPUX, you must create the key on the Linux host and copy the public key to ~/.ssh/authorized_keys on the HPUX host.&lt;BR /&gt;&lt;BR /&gt;With your current configuration, a passwordless connection is allowed _from_ the HPUX host _to_ the Linux host, not vice versa.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Wed, 03 Feb 2010 14:39:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577069#M733327</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-02-03T14:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: sftp without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577070#M733328</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] you must [...]&lt;BR /&gt;&lt;BR /&gt;Perhaps not.  Note the messages:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; debug1: Trying private key: /home/XXXXX/.ssh/identity&lt;BR /&gt;&amp;gt; debug3: no such identity: /home/XXXXX/.ssh/identity&lt;BR /&gt;&amp;gt; debug1: Offering public key: /home/XXXXX/.ssh/id_rsa&lt;BR /&gt;&lt;BR /&gt;I know nothing, but I suspect that if the&lt;BR /&gt;client can't find a private key, but can find&lt;BR /&gt;a public key, then it'll try the public key&lt;BR /&gt;(and hope that the corresponding private key&lt;BR /&gt;is at the other end).&lt;BR /&gt;&lt;BR /&gt;As usual, with sufficiently clever software,&lt;BR /&gt;(and, here, symmetric keys) many things are&lt;BR /&gt;possible.  Personally, I tend to configure&lt;BR /&gt;the stuff right-side-up, so I haven't tested&lt;BR /&gt;the backward-key hypothesis.  (And I'm too&lt;BR /&gt;lazy to read enough to see if it's supposed&lt;BR /&gt;to work that way.)</description>
      <pubDate>Wed, 03 Feb 2010 14:59:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577070#M733328</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-02-03T14:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: sftp without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577071#M733329</link>
      <description>Problem solved.&lt;BR /&gt;&lt;BR /&gt;Turning it the right side around, and generating the key on the Linux side was of course necessary. But after that still had to remove group permissions on the users home directory on the HP-UX side.</description>
      <pubDate>Fri, 05 Feb 2010 06:20:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577071#M733329</guid>
      <dc:creator>swaggart</dc:creator>
      <dc:date>2010-02-05T06:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: sftp without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577072#M733330</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] generating the key on the Linux side&lt;BR /&gt;&amp;gt; was of course necessary [...]&lt;BR /&gt;&lt;BR /&gt;Not really, so long as the right files are&lt;BR /&gt;put into the right places.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] had to remove group permissions [...]&lt;BR /&gt;&lt;BR /&gt;group:write should be the trouble maker.  I'd&lt;BR /&gt;expect group:read,execute to be harmless.</description>
      <pubDate>Fri, 05 Feb 2010 14:39:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-without-password/m-p/4577072#M733330</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-02-05T14:39:01Z</dc:date>
    </item>
  </channel>
</rss>

