Feb 9, 2013

SSH with no password

On client:

First check that the user have almost generate a public and a private key pair. To do that;

ls ~/.ssh/

If there is a key do not try to regenerate keys.

If there is no "id_*" in that location you need to genarate a key pair by;


Then you need to copy your public key to the server. To do that you can use this command.

ssh-copy-id user@server

If this process sucessfully completes you can do ssh without giving your password.

ssh user@server

Now this will connect to the server without asking the password.

No comments:

Post a Comment

Your comments are always welcome ...