Login Through SSH Without Password

On Jan 15, 2010 0 comments

Sometimes we need to login through ssh without password. SSH just need the client's public key to be copied on its directory. With this key, ssh recognize the client as a good client or authorized client, not bad client or intruder. To do this, first you need to generate a key.

Use this command to generate ssh key :

$ ssh-keygen -t  dsa

you can let the passphrase empty.



Then copy your ssh public key to your remote computer. You can use this command :

$ scp ~/.ssh/id_dsa.pub user@remote_computer:.ssh/authorized_keys

Its done, now you can login to your remote computer without being asked for a password.

0 comments:

Post a Comment