ssh login with out password
Fri. January 21, 2011Categories: Information, Linux
If you frequently use ssh to login or run commands on a remote machine, it might be helpful for you if you did not have to not enter a password each time you want to connect to the server, this can be done by uploading your public ssh key to the servers ssh files.
With a simple command that will upload your public key to the server, create and set all required files and permissions. You will need to have your keypairs ready, if you do not, they are locked in ~/.ssh/id_rsa and ~/.ssh/id_rsa.pub, you can generate them using ssh-keygen -t rsa
The command we are all waiting for is ssh-copy-id -i ~/.ssh/id_rsa.pub username@remote-machine
You ned to have the follwoing set in your sshd_config:
RSAAuthentication yes
PubkeyAuthentication yes
-Pete


Comments