Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

#ssh-keygen -t rsa

ssh-copy-id -i ~/.ssh/id_rsa.pub user@servername

or

Copy the content of /root/.ssh/id_rsa.pub to /root/.ssh/authorized_keys
#id_rsa.pub >> authorized_keys
Make sure the permissions are:
#chmod 755 .ssh
#chmod 600 ~/.ssh/authorized_keys

More Tips & Tricks
• You have to disable strict mode in ssh config file if the home directory has access to other users.
• You can restrict the hostnames from where they can connect to the server
Sample:
from=”*.example.com,*.test.com”, [ space] ssh-rsa
or from=”required ip” ssh-rsa

Note: id_rsa.pub is public key, id_rsa is private key, authorized_keys is the key that enables authorization