Sunday, 1 January 2012

SSH WITHOUT PASSWORD

ssh RSA keys
-----------------------
On stationX:
ssh-keygen -t dsa

 Generating public/private dsa key pair.
Enter file in which to save the key (/root/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_dsa.
Your public key has been saved in /root/.ssh/id_dsa.pub.
The key fingerprint is:
2b:15:4e:a7:1e:8d:51:49:1d:28:f8:e5:88:93:91:7a root@station4.example.com
--------------------------------------
ssh-copy-id -i /root/.ssh/id_dsa.pub root@stationY

Now you can do ssh/scp to stationY from stationX with out prompting password

No comments:

Post a Comment