<?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 without password in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-without-password/m-p/3888864#M544036</link>
    <description>Hi again.&lt;BR /&gt;After reading the documentation and following the steps I have the same problem asking the remote password.&lt;BR /&gt;I try to explain my configuration steps and douts.&lt;BR /&gt;&lt;BR /&gt;Context: CLIENT1 &amp;amp; CLIENT2 starts ssh to SERVER1 (user usr1)&lt;BR /&gt;(CLIENTS and SERVER both hp-ux o.s.)&lt;BR /&gt;CLIENT1 (user cl1)&lt;BR /&gt;I note already defined $HOME/.ssh directory and the file  known_hosts (NOTE this file is different from known_hosts in CLIENT2 ... Is this correct?)&lt;BR /&gt;on clients I have executed:&lt;BR /&gt;1) ssh-keygen -t rsa&lt;BR /&gt;pressing enter for passphrase request&lt;BR /&gt;2) scp /.ssh/id_rsa.pub usr1@SERVER1:/id_rsa.pub &lt;BR /&gt;(I need to enter the password of the remote user)&lt;BR /&gt;SERVER1&lt;BR /&gt;1) chmod 700 .ssh&lt;BR /&gt;2) cat id_rsa.pub &amp;gt;&amp;gt; .ssh/authorized_keys&lt;BR /&gt;3) rm  id_rsa.pub &lt;BR /&gt;4) chmod 600 .ssh/authorized_keys&lt;BR /&gt;&lt;BR /&gt;TEST: on the CLIENT1&lt;BR /&gt;ssh usr1@&lt;IP remote="" server=""&gt; ls&lt;BR /&gt;&lt;BR /&gt;the message received is:&lt;BR /&gt;usr1@&lt;IP remote="" server=""&gt;'s password:&lt;BR /&gt;&lt;BR /&gt;Any help well be well accepted.&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;     Giovanni&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/IP&gt;&lt;/IP&gt;</description>
    <pubDate>Mon, 30 Oct 2006 11:33:32 GMT</pubDate>
    <dc:creator>networking</dc:creator>
    <dc:date>2006-10-30T11:33:32Z</dc:date>
    <item>
      <title>ssh without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-without-password/m-p/3888861#M544033</link>
      <description>Hi,&lt;BR /&gt;I have the necessity to run a korn shell on a remote server (both HP-UX servers) using the ssh command.&lt;BR /&gt;&lt;BR /&gt;The sintax that I use is&lt;BR /&gt;&lt;BR /&gt;ssh -l &lt;REMOTE user=""&gt; &lt;IP address="" of="" remote="" host=""&gt; command(ksh script)&lt;BR /&gt;&lt;BR /&gt;Pressing enter I need to set the password of the remote user. Is it possible to evoid to insert the password? In this way I can insert in may local ksh script the above command.&lt;BR /&gt;&lt;BR /&gt;Many thanks in advance for your kind cooperation.&lt;BR /&gt;&lt;BR /&gt;    Giovanni&lt;BR /&gt;&lt;/IP&gt;&lt;/REMOTE&gt;</description>
      <pubDate>Mon, 30 Oct 2006 06:57:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-without-password/m-p/3888861#M544033</guid>
      <dc:creator>networking</dc:creator>
      <dc:date>2006-10-30T06:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: ssh without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-without-password/m-p/3888862#M544034</link>
      <description>Hi Giovanni,&lt;BR /&gt;&lt;BR /&gt;This question has been handled many times before.  Check out these threads:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=982690" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=982690&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1005579" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1005579&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=954343" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=954343&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Mon, 30 Oct 2006 07:01:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-without-password/m-p/3888862#M544034</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-10-30T07:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: ssh without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-without-password/m-p/3888863#M544035</link>
      <description>Many thanks for the quick reply!&lt;BR /&gt;&lt;BR /&gt;   Giovanni</description>
      <pubDate>Mon, 30 Oct 2006 07:39:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-without-password/m-p/3888863#M544035</guid>
      <dc:creator>networking</dc:creator>
      <dc:date>2006-10-30T07:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: ssh without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-without-password/m-p/3888864#M544036</link>
      <description>Hi again.&lt;BR /&gt;After reading the documentation and following the steps I have the same problem asking the remote password.&lt;BR /&gt;I try to explain my configuration steps and douts.&lt;BR /&gt;&lt;BR /&gt;Context: CLIENT1 &amp;amp; CLIENT2 starts ssh to SERVER1 (user usr1)&lt;BR /&gt;(CLIENTS and SERVER both hp-ux o.s.)&lt;BR /&gt;CLIENT1 (user cl1)&lt;BR /&gt;I note already defined $HOME/.ssh directory and the file  known_hosts (NOTE this file is different from known_hosts in CLIENT2 ... Is this correct?)&lt;BR /&gt;on clients I have executed:&lt;BR /&gt;1) ssh-keygen -t rsa&lt;BR /&gt;pressing enter for passphrase request&lt;BR /&gt;2) scp /.ssh/id_rsa.pub usr1@SERVER1:/id_rsa.pub &lt;BR /&gt;(I need to enter the password of the remote user)&lt;BR /&gt;SERVER1&lt;BR /&gt;1) chmod 700 .ssh&lt;BR /&gt;2) cat id_rsa.pub &amp;gt;&amp;gt; .ssh/authorized_keys&lt;BR /&gt;3) rm  id_rsa.pub &lt;BR /&gt;4) chmod 600 .ssh/authorized_keys&lt;BR /&gt;&lt;BR /&gt;TEST: on the CLIENT1&lt;BR /&gt;ssh usr1@&lt;IP remote="" server=""&gt; ls&lt;BR /&gt;&lt;BR /&gt;the message received is:&lt;BR /&gt;usr1@&lt;IP remote="" server=""&gt;'s password:&lt;BR /&gt;&lt;BR /&gt;Any help well be well accepted.&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;     Giovanni&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/IP&gt;&lt;/IP&gt;</description>
      <pubDate>Mon, 30 Oct 2006 11:33:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-without-password/m-p/3888864#M544036</guid>
      <dc:creator>networking</dc:creator>
      <dc:date>2006-10-30T11:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: ssh without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-without-password/m-p/3888865#M544037</link>
      <description>What is the permisson of the home directory?&lt;BR /&gt;&lt;BR /&gt;Has to be 755 or lower.&lt;BR /&gt;&lt;BR /&gt;You need to add the ket in id_rsa.pub from client1 to the authorized_keys file on client2 and vice versa.&lt;BR /&gt;&lt;BR /&gt;No need to remove id_rsa.pub.&lt;BR /&gt;&lt;BR /&gt;Also, no need to do a ssh -l &lt;USER&gt;&lt;BR /&gt;&lt;BR /&gt;Should just be &lt;BR /&gt;&lt;BR /&gt;ssh host command&lt;BR /&gt;&lt;BR /&gt;Or if from root, then:&lt;BR /&gt;&lt;BR /&gt;su - user -c "ssh host command"&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;/USER&gt;</description>
      <pubDate>Mon, 30 Oct 2006 14:15:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-without-password/m-p/3888865#M544037</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-10-30T14:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: ssh without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-without-password/m-p/3888866#M544038</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Between two systems:&lt;BR /&gt;&lt;BR /&gt;System 1&lt;BR /&gt;ssh-keygen -t dsa&lt;BR /&gt;&lt;ENTER through="" all="" the="" options=""&gt;&lt;BR /&gt;&lt;BR /&gt;System 2&lt;BR /&gt;ssh-keygen -t dsa&lt;BR /&gt;&lt;ENTER through="" all="" the="" options=""&gt;&lt;BR /&gt;&lt;BR /&gt;System 1.&lt;BR /&gt;&lt;BR /&gt;scp -p /username/.ssh/id_dsa.pub system2:/username/.ssh/authorized_keys&lt;BR /&gt;&lt;BR /&gt;System 2&lt;BR /&gt;&lt;BR /&gt;scp -p /username/.ssh/id_dsa.pub system1:/username/.ssh/authorized_keys&lt;BR /&gt;&lt;BR /&gt;Want to know whats really going on?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hpuxconsulting.com/5003.ppt" target="_blank"&gt;http://www.hpuxconsulting.com/5003.ppt&lt;/A&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;A href="http://www.hpuxconsulting.com/5004.ppt" target="_blank"&gt;http://www.hpuxconsulting.com/5004.ppt&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;They're both pretty useful.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/ENTER&gt;&lt;/ENTER&gt;</description>
      <pubDate>Mon, 30 Oct 2006 14:40:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-without-password/m-p/3888866#M544038</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-10-30T14:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: ssh without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-without-password/m-p/3888867#M544039</link>
      <description>1- to help debugging, use ssh -vvv (maximum verbose)&lt;BR /&gt;&lt;BR /&gt;2 check the /opt/ssh/etc/sshd_config file for correct parameters, in particular:&lt;BR /&gt;&lt;BR /&gt;AuthorizedKeysFile     .ssh/authorized_keys&lt;BR /&gt;has to point to the user's $HOME/.ssh directory to use a different key for each user.&lt;BR /&gt;&lt;BR /&gt;Chris&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Oct 2006 15:05:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-without-password/m-p/3888867#M544039</guid>
      <dc:creator>Christian Tremblay</dc:creator>
      <dc:date>2006-10-30T15:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: ssh without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-without-password/m-p/3888868#M544040</link>
      <description>First of all, many thanks for the support.&lt;BR /&gt;&lt;BR /&gt;Waiting for a set-up of /opt/ssh/etc/sshd_config ssh file (I do not have at the moment the permissions) for the AuthorizedKeysFile paramether, I ask you if it is correct that I find set only these parameters:&lt;BR /&gt;&lt;BR /&gt;Protocol 2&lt;BR /&gt;KerberosAuthentication yes&lt;BR /&gt;UsePAM yes&lt;BR /&gt;X11Forwarding yes&lt;BR /&gt;X11UseLocalhost no&lt;BR /&gt;Subsystem       sftp    /opt/ssh/libexec/sftp-server&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;    Giovanni</description>
      <pubDate>Tue, 31 Oct 2006 06:05:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-without-password/m-p/3888868#M544040</guid>
      <dc:creator>networking</dc:creator>
      <dc:date>2006-10-31T06:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: ssh without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-without-password/m-p/3888869#M544041</link>
      <description>Hi,&lt;BR /&gt;my doubt ...&lt;BR /&gt;I find the file known_hosts ONLY on .ssh directory of the server where I need to run the ssh command. Is it correct?&lt;BR /&gt;Bye.&lt;BR /&gt;      Giovanni</description>
      <pubDate>Tue, 31 Oct 2006 06:30:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-without-password/m-p/3888869#M544041</guid>
      <dc:creator>networking</dc:creator>
      <dc:date>2006-10-31T06:30:56Z</dc:date>
    </item>
  </channel>
</rss>

