<?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/4961313#M740465</link>
    <description>Hi Sachin from HCL, &lt;BR /&gt;&lt;BR /&gt;Check this document for setting up SSH without password. &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 21 Feb 2006 00:57:56 GMT</pubDate>
    <dc:creator>Arunvijai_4</dc:creator>
    <dc:date>2006-02-21T00:57:56Z</dc:date>
    <item>
      <title>ssh without password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-without-password/m-p/4961310#M740462</link>
      <description>Hi all&lt;BR /&gt;&lt;BR /&gt;I want to run the ssh commands using script but it becomes interective as it needs password to be entered Pls help me how to enable the public private key . So that the ssh will not ask for password every time.&lt;BR /&gt;&lt;BR /&gt;I have tried with public and private key but it does't worked or may be I was using it wrongly .&lt;BR /&gt;&lt;BR /&gt;Pls give me the procedure also to do so.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Sachin Rajput&lt;BR /&gt;HCL</description>
      <pubDate>Tue, 21 Feb 2006 00:05:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-without-password/m-p/4961310#M740462</guid>
      <dc:creator>Sachin_48</dc:creator>
      <dc:date>2006-02-21T00:05: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/4961311#M740463</link>
      <description>&lt;BR /&gt;Hi Sachin,&lt;BR /&gt;&lt;BR /&gt;it can be done..&lt;BR /&gt;&lt;BR /&gt;here is a procedure which got from Net.&lt;BR /&gt;&lt;BR /&gt;Passwordless SSH using public/private keys &lt;BR /&gt;&lt;BR /&gt;Including how to set up rsync and unison (syncronisation software) &lt;BR /&gt;Here is a list of the steps that I had to do to get automatic replication of /home/folder1 (or any other folder) on one server to /home/folder2 on another server: &lt;BR /&gt;&lt;BR /&gt;Passwordless SSH &lt;BR /&gt;To get replication working securly you firstly need to be able to connect via SSH without using passwords: &lt;BR /&gt;&lt;BR /&gt;First server setup &lt;BR /&gt;ssh-keygen -t dsa(press enter twice to give a blank password) &lt;BR /&gt;&lt;BR /&gt;cd &lt;BR /&gt;cd .ssh &lt;BR /&gt;vi .configPress "i" to enter insert mode and copy this into the file: &lt;BR /&gt;&lt;BR /&gt;Host remotehost &lt;BR /&gt;User remoteuser &lt;BR /&gt;Compression yes &lt;BR /&gt;Protocol 2 &lt;BR /&gt;RSAAuthentication yes &lt;BR /&gt;StrictHostKeyChecking no &lt;BR /&gt;ForwardAgent yes &lt;BR /&gt;ForwardX11 yes &lt;BR /&gt;IdentityFile /home/localuser/.ssh/id_remotehost_dsaDo NOT change the last line - it is supposed to say remotehost (not an actual host name). the remoteuser specify as the other username Now, &lt;BR /&gt;&lt;BR /&gt;:wq(save and exit vi) &lt;BR /&gt;&lt;BR /&gt;vi id_dsa.pubIt should look like this: &lt;BR /&gt;&lt;BR /&gt;ssh-dss AAAA..............v root@HOSTNAMEOFSRV01where there is lots of random letters/numbers where the dots are. Select it all and copy it. Make sure that it is all on one line with no spaces at the start or finish (which will happen if you copy it using putty on windows; test it by pasting it into notepad) &lt;BR /&gt;Tip: To copy from putty on windows select the text from within vi and pres Ctrl + Shift. To paste text enter insert mode and press the right mouse button. (best way would be to copy the file through scp) &lt;BR /&gt;&lt;BR /&gt;Second Server Setup &lt;BR /&gt;cd &lt;BR /&gt;vi .ssh/authorized_keysEnter insert mode (press i) and paste the key, again ensuring that there are no spare newlines or spaces. Save the file and exit vi (press :wq then return, as above) &lt;BR /&gt;&lt;BR /&gt;Testing passwordless SSH &lt;BR /&gt;On the first server, type &lt;BR /&gt;&lt;BR /&gt;ssh -l other_user_name srv02 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this is useful,&lt;BR /&gt;&lt;BR /&gt;Siva.</description>
      <pubDate>Tue, 21 Feb 2006 00:20:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-without-password/m-p/4961311#M740463</guid>
      <dc:creator>Sivakumar TS</dc:creator>
      <dc:date>2006-02-21T00:20:10Z</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/4961312#M740464</link>
      <description>Hi...&lt;BR /&gt;&lt;BR /&gt;Try this this works !!!&lt;BR /&gt;Generate a key pair using ssh-keygen, copy the public key to the remote host and place it in .ssh/authorized_keys (or authorized_keys2 for an SSH2 key). Then copy the private key to .ssh/identity on your local machine. Now everythingâ  s set for unhindered sshâ  ing.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Abhijit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Feb 2006 00:46:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-without-password/m-p/4961312#M740464</guid>
      <dc:creator>Abhijit P.</dc:creator>
      <dc:date>2006-02-21T00:46:07Z</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/4961313#M740465</link>
      <description>Hi Sachin from HCL, &lt;BR /&gt;&lt;BR /&gt;Check this document for setting up SSH without password. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Feb 2006 00:57:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-without-password/m-p/4961313#M740465</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-02-21T00:57:56Z</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/4961314#M740466</link>
      <description>Thanks you all &lt;BR /&gt;&lt;BR /&gt;I got the solution &lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Sachin Rajput&lt;BR /&gt;HCl</description>
      <pubDate>Tue, 21 Feb 2006 02:09:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-without-password/m-p/4961314#M740466</guid>
      <dc:creator>Sachin_48</dc:creator>
      <dc:date>2006-02-21T02:09:10Z</dc:date>
    </item>
  </channel>
</rss>

