Tech Support > Operating Systems > Linux / Variants > ssh/scp without password
ssh/scp without password
Posted by Forte Agent on March 6th, 2004



In Linux machines and Cygwin for Windows, I was able to do following
to enable ssh and scp operations without asking password:

ssh account_to_login@server_to_login_using_secure_shel l \
"echo `cat ~/.ssh/id_rsa.pub` >> ~/.ssh/authorized_keys2"

Now I am trying to enable ssh/scp from HP/UX 11i to Linux machine
without password. So I tried to run above from HP/UX 11i, and found
out "~/.ssh/id_rsa.pub" file does not exist on HP/UX 11i. Instead, it
has "prng_seed" and "known_hosts" only in ~/.ssh. Maybe the version
of ssh/scp on HP/UX is different? I created "~/.shosts" on Linux
machine and added "hostname userid", but that did not help. What
should I do to enable logging in without password? Thank you in
advance.




Posted by Forte Agent on March 7th, 2004




Never mind. I just did following and that created
"~/.ssh/id_rsa.pub".

ssh-keygen -t rsa -C "ssh_for_`whoami`@`hostname`" -f ~/.ssh/id_rsa

:-)



On Sat, 06 Mar 2004 19:59:22 -0500, Forte Agent
<1443131@usenetplanet.com> wrote: