Generating ssh keys – steps

Author - Webner
3.03.2015
|
0 Comments
|

These are the steps:

Suppose you want to connect from machine X to machine Y as userme.

* login to X as userme
* At /home/userme run this command:

ssh-keygen -t rsa

This will generate 2 files in /home/userme/.ssh folder

id_rsa
id_rsa.pub

* open id_rsa.pub file and copy its contents – this is the public key

* Now login to machine Y as userme, open file /opt/userme/.ssh/authorized_keys – If path/file does not exist create it

* Append contents copied from id_rsa.pub on machine X to the end of authorized_keys file

* Save file and exit

Now you can ssh to machine Y from X without entering credentials.

Webner Solutions is a Software Development company focused on developing Insurance Agency Management Systems, Learning Management Systems and Salesforce apps. Contact us at dev@webners.com for your Insurance, eLearning and Salesforce applications.

Leave a Reply

Your email address will not be published. Required fields are marked *