Timo Jeranko wrote:
> I'm using the OpenSSH client on Red Hat Linux. Does anyone know how to
> set up the known_hosts file in the .ssh folder to log in to and scp
> into remote machines without being prompted for a password?
You have to copy your private key onto the remote machine, and add it
to .ssh/authorized_keys. For example:
on local machine do:
ssh-keygen -t rsa
scp ~/.ssh/id_rsa.pub
user@remote:~/.ssh/my_key
login to the remote machine, and:
cd ~/.ssh
cat my_key >> authorized_keys
rm my_key
You're done.
PS. Some paths may vary depending on local and remote machine' OS.
--
Cezary Morga