Sunday, April 8, 2007

SSH Login without enter password

We always need to enter password when remote login to server, that is quite tedious when we need to keep on login and logout for operation.

In that case, we can configure the server to be trusted so that we can login without the entering the password.

- The public key should generated inside the ~/.ssh/id_rsa.pub on your local computer
- Inside that file should have a string in that file sort of the one like I have: “ssh-rsa AAAAB3………………..3Uw/nQRBc= [email protected]
- Copy the string some where.
- Log into remote server that you always login, (as usual enter the password). At the home directory should have one directory called “.ssh”.
- Check if you have a file called “authorized_keys” inside that directory. if you don’t have it, create one. or edit the existing one. What you need to do is to add the public key contents which you copied, as a new line to the “authorized_keys” file contents.

Basically, this manual approach should work in most of the machine.

No comments: