<?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: setting up ssh keys in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050988#M434801</link>
    <description>SSH Key Authentication between two Servers:&lt;BR /&gt;&lt;BR /&gt;[a]. Generate a pair of SSH keys on the client. &lt;BR /&gt;&lt;BR /&gt;root@sdsaptsp2# ssh-keygen -t rsa&lt;BR /&gt;Generating public/private rsa key pair.&lt;BR /&gt;Enter file in which to save the key (//.ssh/id_rsa):&lt;BR /&gt;Enter passphrase (empty for no passphrase):&lt;BR /&gt;Enter same passphrase again:&lt;BR /&gt;Your identification has been saved in //.ssh/id_rsa. Your public key has been saved in //.ssh/id_rsa.pub.The key fingerprint is: 05:26:98:a9:1f:c3:03:d1:b1:4e:35:e8:9b:f7:e3:89 root@sdsaptsp2&lt;BR /&gt;&lt;BR /&gt;Note: Here passphrase is set as null. You can also use passphrase and it is good for security. &lt;BR /&gt;&lt;BR /&gt;[b]. Copy the public key from the client to the server: &lt;BR /&gt;&lt;BR /&gt;root@sdsaptsp2# scp /.ssh/id_rsa.pub sdsaptsp1:/var/tmp/&lt;BR /&gt;root@sdsaptsp1's password:&lt;BR /&gt;id_rsa.pub 100% 222 0.2KB/s 00:00&lt;BR /&gt;&lt;BR /&gt;On the server [sdsaptsp1], append the newly obtained key to the ~/.ssh/authorized_keys file, which stores SSH public keys: &lt;BR /&gt;&lt;BR /&gt;root@sdsaptsp1# cat /var/tmp/id_rsa.pub &amp;gt;&amp;gt; /.ssh/authorized_keys&lt;BR /&gt;&lt;BR /&gt;[c]. Modify the permissions of the authorized_keys file&lt;BR /&gt;&lt;BR /&gt;root@sdsaptsp2# chmod 600 ~/.ssh/authorized_keys&lt;BR /&gt;&lt;BR /&gt;At the client, try and login to the server: &lt;BR /&gt;&lt;BR /&gt;root@sdsaptsp2# ssh sdsaptsp1&lt;BR /&gt;Sun Microsystems Inc. SunOS 5.9 Generic Patch January 2007&lt;BR /&gt;You have mail.&lt;BR /&gt;root@sdsaptsp1#&lt;BR /&gt;&lt;BR /&gt;Do the same on the other servers.&lt;BR /&gt;&lt;BR /&gt;Hope it helps.&lt;BR /&gt;</description>
    <pubDate>Tue, 05 Jun 2007 06:31:25 GMT</pubDate>
    <dc:creator>Rasheed Tamton</dc:creator>
    <dc:date>2007-06-05T06:31:25Z</dc:date>
    <item>
      <title>setting up ssh keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050983#M434796</link>
      <description>hi &lt;BR /&gt;can any one tell me how to setup ssh keys among three servers?</description>
      <pubDate>Tue, 05 Jun 2007 01:11:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050983#M434796</guid>
      <dc:creator>gr8</dc:creator>
      <dc:date>2007-06-05T01:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: setting up ssh keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050984#M434797</link>
      <description>&lt;!--!*#--&gt;A forum search for:&lt;BR /&gt;&lt;BR /&gt;    hp-ux ssh-keygen&lt;BR /&gt;&lt;BR /&gt;should tell you more than you want to know.</description>
      <pubDate>Tue, 05 Jun 2007 01:56:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050984#M434797</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-06-05T01:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: setting up ssh keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050985#M434798</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;ssh-keygen -t dsa &lt;BR /&gt;&lt;BR /&gt;All three servers.&lt;BR /&gt;&lt;BR /&gt;Add them all to a single file called authorized_keys&lt;BR /&gt;&lt;BR /&gt;distribute the file to the .ssh directory of all systems.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 05 Jun 2007 02:02:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050985#M434798</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-06-05T02:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: setting up ssh keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050986#M434799</link>
      <description>Hey;&lt;BR /&gt;&lt;BR /&gt;While accurate, the info above doesn't help with understanding how ssh works and, without that, when you run into problems, you will have a much harder time troubleshooting them.&lt;BR /&gt;&lt;BR /&gt;O'Reilly has an absolutely outstanding book on secure shell very appropriately titled "SSH, The Secure Shell: The Definitive Guide", ISBN: 0-596-00011-1.&lt;BR /&gt;&lt;BR /&gt;When you want to know what ssh can do for you and how to configure it, pick that book up.  It's very much worth the cost.&lt;BR /&gt;&lt;BR /&gt;Doug</description>
      <pubDate>Tue, 05 Jun 2007 05:36:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050986#M434799</guid>
      <dc:creator>Doug O'Leary</dc:creator>
      <dc:date>2007-06-05T05:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: setting up ssh keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050987#M434800</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;also have a look at the docs.&lt;BR /&gt;&lt;BR /&gt;see attachment&lt;BR /&gt;&lt;BR /&gt;hope this helps too!&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Tue, 05 Jun 2007 06:09:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050987#M434800</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2007-06-05T06:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: setting up ssh keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050988#M434801</link>
      <description>SSH Key Authentication between two Servers:&lt;BR /&gt;&lt;BR /&gt;[a]. Generate a pair of SSH keys on the client. &lt;BR /&gt;&lt;BR /&gt;root@sdsaptsp2# ssh-keygen -t rsa&lt;BR /&gt;Generating public/private rsa key pair.&lt;BR /&gt;Enter file in which to save the key (//.ssh/id_rsa):&lt;BR /&gt;Enter passphrase (empty for no passphrase):&lt;BR /&gt;Enter same passphrase again:&lt;BR /&gt;Your identification has been saved in //.ssh/id_rsa. Your public key has been saved in //.ssh/id_rsa.pub.The key fingerprint is: 05:26:98:a9:1f:c3:03:d1:b1:4e:35:e8:9b:f7:e3:89 root@sdsaptsp2&lt;BR /&gt;&lt;BR /&gt;Note: Here passphrase is set as null. You can also use passphrase and it is good for security. &lt;BR /&gt;&lt;BR /&gt;[b]. Copy the public key from the client to the server: &lt;BR /&gt;&lt;BR /&gt;root@sdsaptsp2# scp /.ssh/id_rsa.pub sdsaptsp1:/var/tmp/&lt;BR /&gt;root@sdsaptsp1's password:&lt;BR /&gt;id_rsa.pub 100% 222 0.2KB/s 00:00&lt;BR /&gt;&lt;BR /&gt;On the server [sdsaptsp1], append the newly obtained key to the ~/.ssh/authorized_keys file, which stores SSH public keys: &lt;BR /&gt;&lt;BR /&gt;root@sdsaptsp1# cat /var/tmp/id_rsa.pub &amp;gt;&amp;gt; /.ssh/authorized_keys&lt;BR /&gt;&lt;BR /&gt;[c]. Modify the permissions of the authorized_keys file&lt;BR /&gt;&lt;BR /&gt;root@sdsaptsp2# chmod 600 ~/.ssh/authorized_keys&lt;BR /&gt;&lt;BR /&gt;At the client, try and login to the server: &lt;BR /&gt;&lt;BR /&gt;root@sdsaptsp2# ssh sdsaptsp1&lt;BR /&gt;Sun Microsystems Inc. SunOS 5.9 Generic Patch January 2007&lt;BR /&gt;You have mail.&lt;BR /&gt;root@sdsaptsp1#&lt;BR /&gt;&lt;BR /&gt;Do the same on the other servers.&lt;BR /&gt;&lt;BR /&gt;Hope it helps.&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Jun 2007 06:31:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050988#M434801</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2007-06-05T06:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: setting up ssh keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050989#M434802</link>
      <description>gr8,&lt;BR /&gt;&lt;BR /&gt;You didn't say what version of HP-UX&lt;BR /&gt;you were using but if it's 11iV2 Dec 05 &lt;BR /&gt;or later, there is a nice utility:&lt;BR /&gt;/opt/dsau/bin/csshsetup&lt;BR /&gt;that helps automate the steps required to &lt;BR /&gt;configure password-less ssh access across&lt;BR /&gt;N systems. You simply do:&lt;BR /&gt;&lt;BR /&gt;    csshsetup -f &lt;FILE&gt;&lt;BR /&gt;&lt;BR /&gt;where &lt;FILE&gt; contains the name of the &lt;BR /&gt;N systems, one per line. That would set up &lt;BR /&gt;the user with a one-way ssh trust from the current system to the N others. If&lt;BR /&gt;you add the -r flag, the key exchange is &lt;BR /&gt;bi-directional across all the servers so you could ssh from any server to any other server in the list. One of the standard &lt;BR /&gt;uses here is setting up ssh in a Serviceguard cluster for example. Works just &lt;BR /&gt;fine for groups of standalone systems as well.&lt;/FILE&gt;&lt;/FILE&gt;</description>
      <pubDate>Wed, 06 Jun 2007 09:32:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050989#M434802</guid>
      <dc:creator>PeterWolfe</dc:creator>
      <dc:date>2007-06-06T09:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: setting up ssh keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050990#M434803</link>
      <description>Hi all&lt;BR /&gt;i tried creating authorized_keys but iam facing loging in probelms  with one user&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Jun 2007 05:03:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050990#M434803</guid>
      <dc:creator>gr8</dc:creator>
      <dc:date>2007-06-12T05:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: setting up ssh keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050991#M434804</link>
      <description>&amp;gt; i tried creating authorized_keys&lt;BR /&gt;&lt;BR /&gt;Do you think that this explains what you did?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; but iam facing loging in probelms with one&lt;BR /&gt;&amp;gt; user&lt;BR /&gt;&lt;BR /&gt;Do you think that this explains your problem?&lt;BR /&gt;&lt;BR /&gt;It might help to explain, exactly, what you&lt;BR /&gt;have done.&lt;BR /&gt;&lt;BR /&gt;It might also help if you show the output&lt;BR /&gt;from an "ssh" command which includes the "-v"&lt;BR /&gt;option (for example: "ssh -v host_name").&lt;BR /&gt;&lt;BR /&gt;If you have a problem with only one user, and&lt;BR /&gt;it works for other users, you could compare&lt;BR /&gt;the "ssh -v [...]" output for the problem&lt;BR /&gt;user with that for a non-problem user.&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Jun 2007 06:06:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050991#M434804</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-06-12T06:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: setting up ssh keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050992#M434805</link>
      <description>As the userid you want to use, cd ~USER&lt;BR /&gt;mkdir .ssh&lt;BR /&gt;chmod 700 .ssh&lt;BR /&gt;cd .ssh&lt;BR /&gt;ssh-keygen -t rsa -f id_rsa&lt;BR /&gt;&lt;BR /&gt;That will create id_rsa and id_rsa.pub&lt;BR /&gt;&lt;BR /&gt;Add the contents of id_rsa.pub to the ~USER/.ssh/authorized_keys file on a remote host (you may have to create the file if not there already).&lt;BR /&gt;&lt;BR /&gt;Then, as that USER, you should be able to ssh without being prompted for a password.&lt;BR /&gt;&lt;BR /&gt;Example, list contents of my home dir on svr1020 - executed from svr1120:&lt;BR /&gt;&lt;BR /&gt;gwild@svr1120 [ /home/gwild ]&lt;BR /&gt;# ssh svr1020 ls&lt;BR /&gt;mirror-root&lt;BR /&gt;test_dbi.pl&lt;BR /&gt;test_mail.pl&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;NOTE: This will not work if the /home/USER permissions are higher then 755 - that is, 775 will not work.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Jun 2007 07:46:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050992#M434805</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-06-12T07:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: setting up ssh keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050993#M434806</link>
      <description>Hi&lt;BR /&gt;i have problem with only one user .who is having home directory on a deffrent file system.(all others are at /export/home).&lt;BR /&gt;&lt;BR /&gt;i compared output of ssh -v commands. ifound that for the problem user ssh publickey authentication is not taking place but unfortunately there is no error messages for that&lt;BR /&gt;tail of ssh -v ouput shows something like this&lt;BR /&gt;&lt;BR /&gt;debug1: authentications that can continue: publickey,password,keyboard-interacti&lt;BR /&gt;ve&lt;BR /&gt;debug1: next auth method to try is publickey&lt;BR /&gt;debug1: try privkey: /home/xxxx/.ssh/identity&lt;BR /&gt;debug1: try privkey: /home/xxxx/.ssh/id_rsa&lt;BR /&gt;debug1: try pubkey: /home/xxxx/.ssh/id_dsa&lt;BR /&gt;debug1: authentications that can continue: publickey,password,keyboard-interacti&lt;BR /&gt;ve&lt;BR /&gt;debug1: next auth method to try is keyboard-interactive&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Jun 2007 03:19:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050993#M434806</guid>
      <dc:creator>gr8</dc:creator>
      <dc:date>2007-06-15T03:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: setting up ssh keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050994#M434807</link>
      <description>So, is there a "/home/xxxx/.ssh/identity"&lt;BR /&gt;for this user?  What's in it?  "ls -l"?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] you could compare [...]&lt;BR /&gt;&lt;BR /&gt;Can we assume that this is where the good&lt;BR /&gt;user's "ssh -v" output diverges from that of&lt;BR /&gt;the bad user?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; tail of ssh -v ouput shows something like this&lt;BR /&gt;&lt;BR /&gt;Yeah, we wouldn't want to see the whole&lt;BR /&gt;thing for a good user and for a bad user, and&lt;BR /&gt;we certainly wouldn't want to see it before&lt;BR /&gt;you changed all the details.</description>
      <pubDate>Fri, 15 Jun 2007 09:35:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050994#M434807</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-06-15T09:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: setting up ssh keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050995#M434808</link>
      <description>Did you check the permissions of their home directory?  Has to be 755.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Fri, 15 Jun 2007 09:40:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050995#M434808</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-06-15T09:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: setting up ssh keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050996#M434809</link>
      <description>It was the home directory permission issue.&lt;BR /&gt;it was not the standard home directory for this user . maded required permission changes tested -- ok .thanks for your help</description>
      <pubDate>Fri, 20 Jul 2007 01:42:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ssh-keys/m-p/5050996#M434809</guid>
      <dc:creator>gr8</dc:creator>
      <dc:date>2007-07-20T01:42:10Z</dc:date>
    </item>
  </channel>
</rss>

