Sunday, October 25, 2009

To set up SSH Keys - UNIX

The process of creating SSH - Version 2 keys in the destination server is given below.

Login to source server using the your user id
scp id_dsa.pub user@destination_server:./id_dsa.pub


Login to the destination server using the user name and password
cd .ssh
touch authorized_keys2
chmod 600 authorized_keys2
cat ../id_dsa.pub >> authorized_keys2
rm ../id_dsa.pub

Logout from the destination server and try to login from source server again using the following command,

ssh -2 -v user@destination_server
Or
ssh destination_server

No comments: