Afficher un message
Vieux 03/11/2006, 13h05   #2
Cezary Morga
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Question about known_hosts

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
  Réponse avec citation
 
Page generated in 0,04514 seconds with 9 queries