<?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: ssh keys in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4623394#M377811</link>
    <description>&lt;!--!*#--&gt;As usual, some basic information might be&lt;BR /&gt;nice.  For example:&lt;BR /&gt;&lt;BR /&gt;      uname -a&lt;BR /&gt;      ssh -V&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...]&lt;BR /&gt;&amp;gt; botht the keys are uploaded in both server.&lt;BR /&gt;&lt;BR /&gt;After all that, I don't really know which key&lt;BR /&gt;files are where, or who owns them, or what&lt;BR /&gt;their permissions are.  Showing actual&lt;BR /&gt;commands with their actual output can be more&lt;BR /&gt;helpful than vague descriptions and&lt;BR /&gt;interpretations.&lt;BR /&gt;&lt;BR /&gt;Adding "-v" (or "-vv", or ...) to an "ssh"&lt;BR /&gt;command might provide some useful&lt;BR /&gt;information.  Potentially interesting, as a&lt;BR /&gt;start:&lt;BR /&gt;&lt;BR /&gt;      who am i&lt;BR /&gt;      ls -ld ~/.ssh&lt;BR /&gt;      ls -l ~/.ssh&lt;BR /&gt;&lt;BR /&gt;(on both systems).&lt;BR /&gt;&lt;BR /&gt;The system log file on the server often has&lt;BR /&gt;something to say about SSH login problems.&lt;BR /&gt;&lt;BR /&gt;There must be dozens of old Forum threads on&lt;BR /&gt;various SSH problems, too.</description>
    <pubDate>Sun, 25 Apr 2010 05:23:04 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2010-04-25T05:23:04Z</dc:date>
    <item>
      <title>ssh keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4623393#M377810</link>
      <description>rx26-183 from this node i generated the public key &amp;amp; uploaded in the rx26-184. so passwordless login is happnening.&lt;BR /&gt;&lt;BR /&gt;2.from rx26-184 generated a public key &amp;amp; uploaded in the rx26-183.psswordless login happens.&lt;BR /&gt;&lt;BR /&gt;3. but when i login again from rx26-183 to rx26-184 it's asking for password.&lt;BR /&gt;&lt;BR /&gt;botht the keys are uploaded in both server.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Sun, 25 Apr 2010 04:57:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4623393#M377810</guid>
      <dc:creator>fizan</dc:creator>
      <dc:date>2010-04-25T04:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: ssh keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4623394#M377811</link>
      <description>&lt;!--!*#--&gt;As usual, some basic information might be&lt;BR /&gt;nice.  For example:&lt;BR /&gt;&lt;BR /&gt;      uname -a&lt;BR /&gt;      ssh -V&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...]&lt;BR /&gt;&amp;gt; botht the keys are uploaded in both server.&lt;BR /&gt;&lt;BR /&gt;After all that, I don't really know which key&lt;BR /&gt;files are where, or who owns them, or what&lt;BR /&gt;their permissions are.  Showing actual&lt;BR /&gt;commands with their actual output can be more&lt;BR /&gt;helpful than vague descriptions and&lt;BR /&gt;interpretations.&lt;BR /&gt;&lt;BR /&gt;Adding "-v" (or "-vv", or ...) to an "ssh"&lt;BR /&gt;command might provide some useful&lt;BR /&gt;information.  Potentially interesting, as a&lt;BR /&gt;start:&lt;BR /&gt;&lt;BR /&gt;      who am i&lt;BR /&gt;      ls -ld ~/.ssh&lt;BR /&gt;      ls -l ~/.ssh&lt;BR /&gt;&lt;BR /&gt;(on both systems).&lt;BR /&gt;&lt;BR /&gt;The system log file on the server often has&lt;BR /&gt;something to say about SSH login problems.&lt;BR /&gt;&lt;BR /&gt;There must be dozens of old Forum threads on&lt;BR /&gt;various SSH problems, too.</description>
      <pubDate>Sun, 25 Apr 2010 05:23:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4623394#M377811</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-04-25T05:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: ssh keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4623395#M377812</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;in host1&lt;BR /&gt;&lt;BR /&gt;1.mkdir .ssh&lt;BR /&gt;cd .ssh&lt;BR /&gt;ssh-keygen -t rsa&lt;BR /&gt;two files will be generating&lt;BR /&gt;add the host entry of host2 in host1 in /etc/hosts.&lt;BR /&gt;&lt;BR /&gt;in host2&lt;BR /&gt;&lt;BR /&gt;create a dir .ssh&lt;BR /&gt;copy the id.rsa.pub key in to .ssh of ur home dir.and the same u redirect to authorized_keys.&lt;BR /&gt;set 700 for .ssh and 600 for authorized keys&lt;BR /&gt;-- &lt;BR /&gt;follow this step &lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;MC&lt;BR /&gt;</description>
      <pubDate>Sun, 25 Apr 2010 05:41:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4623395#M377812</guid>
      <dc:creator>madhuchakkaravarthy</dc:creator>
      <dc:date>2010-04-25T05:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: ssh keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4623396#M377813</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;just left final steps&lt;BR /&gt;&lt;BR /&gt;ssh [ipaddress or hostname ]&lt;BR /&gt;&lt;BR /&gt;then it will be  added  permanently in knowhost file in host1.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;MC</description>
      <pubDate>Sun, 25 Apr 2010 05:44:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4623396#M377813</guid>
      <dc:creator>madhuchakkaravarthy</dc:creator>
      <dc:date>2010-04-25T05:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: ssh keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4623397#M377814</link>
      <description>[rx26-183]/.ssh&lt;BR /&gt;# ll&lt;BR /&gt;total 80&lt;BR /&gt;-rw-r--r--   1 root       sys            573 Apr 25 01:57 16.118.112.88&lt;BR /&gt;-rw-------   1 root       sys           2203 Apr 25 01:46 authorized_keys&lt;BR /&gt;-rw-------   1 root       sys           1675 Apr 25 01:43 id_rsa&lt;BR /&gt;-rw-r--r--   1 root       sys            395 Apr 25 01:46 id_rsa.pub&lt;BR /&gt;-rw-r--r--   1 root       sys            884 Apr 25 01:47 known_hosts&lt;BR /&gt;[rx26-183]/.ssh&lt;BR /&gt;# ls -ld /.ssh&lt;BR /&gt;drwxr-xr-x   2 root       sys           8192 Apr 25 02:49 /.ssh&lt;BR /&gt;[rx26-183]/.ssh&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;BR /&gt;[rx26-184]/&lt;BR /&gt;# ls -ld /.ssh&lt;BR /&gt;drwxr-xr-x   2 root       sys           8192 Apr 25 01:48 /.ssh&lt;BR /&gt;[rx26-184]/&lt;BR /&gt;# cd .ssh&lt;BR /&gt;[rx26-184]/.ssh&lt;BR /&gt;# ll&lt;BR /&gt;total 80&lt;BR /&gt;-rw-------   1 root       sys           2598 Apr 25 01:48 authorized_keys&lt;BR /&gt;-rw-------   1 root       sys           1675 Apr 25 01:45 id_rsa&lt;BR /&gt;-rw-r--r--   1 root       sys            395 Apr 25 01:45 id_rsa.pub&lt;BR /&gt;-rw-r--r--   1 root       sys            395 Apr 25 01:47 id_rsa.pub.old&lt;BR /&gt;-rw-r--r--   1 root       sys            884 Apr 25 01:46 known_hosts&lt;BR /&gt;-----------------------------------------&lt;BR /&gt;&lt;BR /&gt;HP-UX rx26-183 B.11.31 U ia64 3870505015 unlimited-user license</description>
      <pubDate>Sun, 25 Apr 2010 05:52:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4623397#M377814</guid>
      <dc:creator>fizan</dc:creator>
      <dc:date>2010-04-25T05:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: ssh keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4623398#M377815</link>
      <description>Madhu changed the permissions to 700 for .ssh dir and 600 for authorized-keys. &lt;BR /&gt;&lt;BR /&gt;Now also it asks for passwd::&lt;BR /&gt;&lt;BR /&gt;# sftp -v root@rx26-184&lt;BR /&gt;Connecting to rx26-184...&lt;BR /&gt;OpenSSH_4.7p1+sftpfilecontrol-v1.2-hpn12v17, OpenSSL 0.9.7m 23 Feb 2007&lt;BR /&gt;HP-UX Secure Shell-A.04.70.023, HP-UX Secure Shell version&lt;BR /&gt;debug1: Reading configuration data /opt/ssh/etc/ssh_config&lt;BR /&gt;debug1: Connecting to rx26-184 [16.118.112.88] port 22.&lt;BR /&gt;debug1: Connection established.&lt;BR /&gt;debug1: permanently_set_uid: 0/3&lt;BR /&gt;debug1: identity file /.ssh/id_rsa type 1&lt;BR /&gt;debug1: identity file /.ssh/id_dsa type -1&lt;BR /&gt;debug1: Remote protocol version 2.0, remote software version OpenSSH_4.7p1+sftpfilecontrol-v1.2-hpn12v17&lt;BR /&gt;debug1: match: OpenSSH_4.7p1+sftpfilecontrol-v1.2-hpn12v17 pat OpenSSH*&lt;BR /&gt;debug1: Enabling compatibility mode for protocol 2.0&lt;BR /&gt;debug1: Local version string SSH-2.0-OpenSSH_4.7p1+sftpfilecontrol-v1.2-hpn12v17&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 'rx26-184' is known and matches the RSA host key.&lt;BR /&gt;debug1: Found key in /.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: publickey,password,keyboard-interactive&lt;BR /&gt;debug1: Next authentication method: publickey&lt;BR /&gt;debug1: Offering public key: /.ssh/id_rsa&lt;BR /&gt;debug1: Authentications that can continue: publickey,password,keyboard-interactive&lt;BR /&gt;debug1: Trying private key: /.ssh/id_dsa&lt;BR /&gt;debug1: Next authentication method: keyboard-interactive&lt;BR /&gt;Password:&lt;BR /&gt;</description>
      <pubDate>Sun, 25 Apr 2010 05:57:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4623398#M377815</guid>
      <dc:creator>fizan</dc:creator>
      <dc:date>2010-04-25T05:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: ssh keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4623399#M377816</link>
      <description>fizan,&lt;BR /&gt;&lt;BR /&gt;try following again to have transparent loging from :  rx26-183 to  rx26-184. &lt;BR /&gt;&lt;BR /&gt;- Also make sure both the server having same ssh &amp;amp; same ver.&lt;BR /&gt;&lt;BR /&gt;1. on  rx26-183: &lt;BR /&gt;# ssh-keygen -t dsa &lt;BR /&gt;&lt;BR /&gt;2. Copy the file : id-dsa.pub  to rx26-184 in the user path:   (in this case root user example) &lt;BR /&gt;id-dsa.pub  -&amp;gt; copy to rx26-184:/root/.ssh/authorized_keys &lt;BR /&gt;&lt;BR /&gt;3. From rx26-183 try transparent login:&lt;BR /&gt;rx26-183:#: ssh rx26-183&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hth,&lt;BR /&gt;Raj.&lt;BR /&gt;</description>
      <pubDate>Sun, 25 Apr 2010 06:14:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4623399#M377816</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2010-04-25T06:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: ssh keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4623400#M377817</link>
      <description>fizan,&lt;BR /&gt;&lt;BR /&gt;Also check the permissions on the home directory of the user ,&lt;BR /&gt;check the following link, most likely you have permission issue :&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1303925" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1303925&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1364024" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1364024&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hth,&lt;BR /&gt;Raj. &lt;BR /&gt;</description>
      <pubDate>Sun, 25 Apr 2010 06:21:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4623400#M377817</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2010-04-25T06:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: ssh keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4623401#M377818</link>
      <description>&lt;!--!*#--&gt;&amp;gt; SSH-2.0-OpenSSH_4.7p1+sftpfilecontrol-v1.2-hpn12v17 &lt;BR /&gt;&lt;BR /&gt;Not exactly the latest stuff, but that's&lt;BR /&gt;probably not the biggest problem here.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What is this junk?:&lt;BR /&gt;&lt;BR /&gt;-rw-r--r-- 1 root sys 573 Apr 25 01:57 16.118.112.88&lt;BR /&gt;&lt;BR /&gt;-rw-r--r-- 1 root sys 395 Apr 25 01:47 id_rsa.pub.old&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;How did you get a public+private key pair&lt;BR /&gt;with modified-date-times which differ by&lt;BR /&gt;three minutes?:&lt;BR /&gt;&lt;BR /&gt;-rw------- 1 root sys 1675 Apr 25 01:43 id_rsa&lt;BR /&gt;-rw-r--r-- 1 root sys 395 Apr 25 01:46 id_rsa.pub&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I can't see what you have in your&lt;BR /&gt;authorized_keys files.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...]&lt;BR /&gt;&amp;gt; debug1: Next authentication method: publickey &lt;BR /&gt;&amp;gt; debug1: Offering public key: /.ssh/id_rsa&lt;BR /&gt;&amp;gt; debug1: Authentications that can continue:&lt;BR /&gt;&amp;gt; publickey,password,keyboard-interactive&lt;BR /&gt;&amp;gt; [...]&lt;BR /&gt;&lt;BR /&gt;The server did not find an appropriate key&lt;BR /&gt;for that in the user's authorized_keys file.&lt;BR /&gt;&lt;BR /&gt;Note: "Offering public key: /.ssh/id_rsa".&lt;BR /&gt;That should be a _private_ key.  A _public_&lt;BR /&gt;key should be named "xxx.pub".&lt;BR /&gt;&lt;BR /&gt;I can't see what's in your key files, but,&lt;BR /&gt;from what I can see, they seem to be mostly&lt;BR /&gt;corrupt.  I would throw all this stuff away,&lt;BR /&gt;and try again.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;A working log-in sequence should look more&lt;BR /&gt;like the following.  (My keys are DSA, not&lt;BR /&gt;RSA, but it all looks similar.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt; dyi # ssh -v -l sms alp-l&lt;BR /&gt;OpenSSH_5.2p1+sftpfilecontrol-v1.3-hpn13v5, OpenSSL 0.9.8k 25 Mar 2009&lt;BR /&gt;&amp;gt; [...]&lt;BR /&gt;&amp;gt; debug1: Trying private key: /root/.ssh/id_dsa&lt;BR /&gt;&amp;gt; debug1: read PEM private key done: type DSA&lt;BR /&gt;&amp;gt; debug1: Authentication succeeded (publickey).&lt;BR /&gt;&amp;gt; [...]</description>
      <pubDate>Sun, 25 Apr 2010 12:45:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4623401#M377818</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-04-25T12:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: ssh keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4623402#M377819</link>
      <description>&lt;!--!*#--&gt;If you're generating different key file pairs&lt;BR /&gt;on different systems, then you might get less&lt;BR /&gt;confusion if you give them different names.&lt;BR /&gt;For example:&lt;BR /&gt;      id_rsa-183&lt;BR /&gt;      id_rsa-183.pub&lt;BR /&gt;      id_rsa-184&lt;BR /&gt;      id_rsa-184.pub&lt;BR /&gt;&lt;BR /&gt;Then, on any particular system, you could&lt;BR /&gt;create a symbolic link to one of the real key&lt;BR /&gt;files from a name which the SSH client will&lt;BR /&gt;try to use.  For example:&lt;BR /&gt;&lt;BR /&gt;      ln -s id_rsa-183 ~/.ssh2/id_rsa</description>
      <pubDate>Sun, 25 Apr 2010 21:02:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4623402#M377819</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-04-25T21:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: ssh keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4623403#M377820</link>
      <description>fine steven,&lt;BR /&gt;&lt;BR /&gt;now the two way communication happens. as that key was corrupted.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 26 Apr 2010 01:09:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4623403#M377820</guid>
      <dc:creator>fizan</dc:creator>
      <dc:date>2010-04-26T01:09:46Z</dc:date>
    </item>
  </channel>
</rss>

