Strict Standards: Redefining already defined constructor for class Object in /www/htdocs/w00b2db0/cake/libs/object.php on line 63

Strict Standards: Non-static method Configure::getInstance() should not be called statically in /www/htdocs/w00b2db0/cake/bootstrap.php on line 47
Automatic Login per SSH

Automatic Login per SSH

This tutorial explains how you can login to remote computers over ssh without typing in your password all the time, using public key authorization.

First of all, you need to create a public key (if you don't have one already). Check if you have a file called ~/.ssh/id_dsa.pub. If the file doesn't exist, create one with this command:
ssh-keygen -t dsa

Now you need to append your public key to a file ~/.ssh/authorized_keys on the remote server that you want to login to. Replace remoteuser and remoteserver.com with your own credentials.
cat ~/.ssh/id_dsa.pub | ssh -l remoteuser remoteserver.com 'cat >> ~/.ssh/authorized_keys'
That's it! Now you can login to the remote server without being asked for your password.


This page has been viewed 5797 times.