<?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 not able to do passwordless ssh as normal user in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/not-able-to-do-passwordless-ssh-as-normal-user/m-p/5983763#M483430</link>
    <description>&lt;P&gt;Hi&amp;nbsp; Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Aim:-&lt;/P&gt;&lt;P&gt;=====&lt;/P&gt;&lt;P&gt;User want&amp;nbsp; to set up a passwordless ssh for a user&amp;nbsp;user1 &amp;nbsp;from the sever A to the server B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actions Performed :-&lt;/P&gt;&lt;P&gt;================&lt;/P&gt;&lt;P&gt;1) Logged&amp;nbsp; to the server A as root&lt;/P&gt;&lt;P&gt;2) su&amp;nbsp; to the normal user (user1)&lt;/P&gt;&lt;P&gt;3) created the ssh-keygen&lt;/P&gt;&lt;P&gt;4) copied the key from&amp;nbsp;server A &amp;nbsp;to server B&lt;/P&gt;&lt;P&gt;5) Now as that normal user i am able to do passwordless ssh&amp;nbsp; to hpux79a4&lt;/P&gt;&lt;P&gt;Now the customer requirement:&lt;/P&gt;&lt;P&gt;==========================&lt;/P&gt;&lt;P&gt;The user will log in to the server as another &amp;nbsp;normal user (user2) then execute the below command&lt;/P&gt;&lt;P&gt;Server A : user2 $ &amp;gt;&amp;nbsp; ssh&amp;nbsp; &lt;A target="_blank" href="mailto:user1@hpux79c4"&gt;user1@&lt;/A&gt;server&amp;nbsp;B &amp;nbsp;date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here its asking for password ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could&amp;nbsp; you please help me on this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2013 04:22:05 GMT</pubDate>
    <dc:creator>laiju.c.babu</dc:creator>
    <dc:date>2013-03-05T04:22:05Z</dc:date>
    <item>
      <title>not able to do passwordless ssh as normal user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/not-able-to-do-passwordless-ssh-as-normal-user/m-p/5983763#M483430</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Aim:-&lt;/P&gt;&lt;P&gt;=====&lt;/P&gt;&lt;P&gt;User want&amp;nbsp; to set up a passwordless ssh for a user&amp;nbsp;user1 &amp;nbsp;from the sever A to the server B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actions Performed :-&lt;/P&gt;&lt;P&gt;================&lt;/P&gt;&lt;P&gt;1) Logged&amp;nbsp; to the server A as root&lt;/P&gt;&lt;P&gt;2) su&amp;nbsp; to the normal user (user1)&lt;/P&gt;&lt;P&gt;3) created the ssh-keygen&lt;/P&gt;&lt;P&gt;4) copied the key from&amp;nbsp;server A &amp;nbsp;to server B&lt;/P&gt;&lt;P&gt;5) Now as that normal user i am able to do passwordless ssh&amp;nbsp; to hpux79a4&lt;/P&gt;&lt;P&gt;Now the customer requirement:&lt;/P&gt;&lt;P&gt;==========================&lt;/P&gt;&lt;P&gt;The user will log in to the server as another &amp;nbsp;normal user (user2) then execute the below command&lt;/P&gt;&lt;P&gt;Server A : user2 $ &amp;gt;&amp;nbsp; ssh&amp;nbsp; &lt;A target="_blank" href="mailto:user1@hpux79c4"&gt;user1@&lt;/A&gt;server&amp;nbsp;B &amp;nbsp;date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here its asking for password ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could&amp;nbsp; you please help me on this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2013 04:22:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/not-able-to-do-passwordless-ssh-as-normal-user/m-p/5983763#M483430</guid>
      <dc:creator>laiju.c.babu</dc:creator>
      <dc:date>2013-03-05T04:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: not able to do passwordless ssh as normal user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/not-able-to-do-passwordless-ssh-as-normal-user/m-p/5983765#M483431</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In server B,copy the key to authorized_keys file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;just like,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cat id_rsa.pub &amp;gt; authorized_keys.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Madhu&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2013 04:30:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/not-able-to-do-passwordless-ssh-as-normal-user/m-p/5983765#M483431</guid>
      <dc:creator>madhuthelearner</dc:creator>
      <dc:date>2013-03-05T04:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: not able to do passwordless ssh as normal user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/not-able-to-do-passwordless-ssh-as-normal-user/m-p/5983769#M483432</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if there are more eys&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;append as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cat id.rsa.pub &amp;gt;&amp;gt; authorized_keys&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Madhu&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2013 04:32:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/not-able-to-do-passwordless-ssh-as-normal-user/m-p/5983769#M483432</guid>
      <dc:creator>madhuthelearner</dc:creator>
      <dc:date>2013-03-05T04:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: not able to do passwordless ssh as normal user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/not-able-to-do-passwordless-ssh-as-normal-user/m-p/5983773#M483433</link>
      <description>&lt;P&gt;Hi Madhu,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had copied the key to that file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And i am able to do passwordless ssh as user1. I am facing the&amp;nbsp; issue when i am following the below process&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Logging to the server A as user2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; ssh &lt;A target="_blank" href="mailto:user1@Server"&gt;user1@Server&lt;/A&gt; B date&amp;nbsp;&amp;nbsp; ========&amp;gt; Here its asking for password&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i am logging ot server A as user1 and doing the below command its working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ssh server B date ========&amp;gt; this is working fine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2013 04:48:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/not-able-to-do-passwordless-ssh-as-normal-user/m-p/5983773#M483433</guid>
      <dc:creator>laiju.c.babu</dc:creator>
      <dc:date>2013-03-05T04:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: not able to do passwordless ssh as normal user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/not-able-to-do-passwordless-ssh-as-normal-user/m-p/5984333#M483439</link>
      <description>&lt;P&gt;In general, if you want to allow user X at server A to login as user Y to server B, the requirements are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;there must be a SSH private key in ~userX/.ssh/id_rsa on server A&lt;/LI&gt;&lt;LI&gt;the matching public key must be added to ~userY/.ssh/authorized_keys on server B.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In your case, your user1 now has an appropriate set-up for passwordless SSH for logging in as user1@serverB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To allow user2@serverA to login as user1@serverB too, the best practice is to generate another SSH key pair as user2@serverA, and then add user2's public key to ~user1/.ssh/authorized_keys on serverB.&lt;/P&gt;&lt;PRE&gt;# cat user2key.pub &amp;gt;&amp;gt; ~user1/.ssh/authorized_keys&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The authorized_keys file can hold an unlimited number of public keys (although if you have a massive number of public keys, login may be slow).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason for creating a separate key for each user is: if one of the users misplaces his/her private key (so that an unauthorized person may use it), you can easily remove the matching public key from the authorized_keys file and replace it with a new public key, without causing any inconvenience to the other users.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2013 13:34:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/not-able-to-do-passwordless-ssh-as-normal-user/m-p/5984333#M483439</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2013-03-05T13:34:22Z</dc:date>
    </item>
    <item>
      <title>,Re: not able to do passwordless ssh as normal user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/not-able-to-do-passwordless-ssh-as-normal-user/m-p/5985273#M483450</link>
      <description>&lt;P&gt;Hi MK,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply, the issue is resolved&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Resolved&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2013 05:27:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/not-able-to-do-passwordless-ssh-as-normal-user/m-p/5985273#M483450</guid>
      <dc:creator>laiju.c.babu</dc:creator>
      <dc:date>2013-03-06T05:27:38Z</dc:date>
    </item>
  </channel>
</rss>

