https://blogs.oracle.com/jkini/entry/how_to_scp_scp_and
cd
ls .ssh
authorized_keys known_hosts
ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/pvernet/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/pvernet/.ssh/id_rsa.
Your public key has been saved in /home/pvernet/.ssh/id_rsa.pub.
The key fingerprint is:
b8:73:75:3a:43:da:5c:14:42:93:d4:7d:cb:7b:4c:e3 pvernet@pippohost105
scp .ssh/id_rsa.pub pvernet@pippohost106:/home/pvernet/
login to pippohost106
mkdir .ssh
cat id_rsa.pub >> ~/.ssh/authorized_keys
chmod 700 ~/.ssh/authorized_keys
rm id_rsa.pub
See also here
Thursday, May 3, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment