Posts

Showing posts from October, 2015

SSH using Private key

Image
SSH Server IP - 192.168.1.2 - server2 (rhel 6.5) SSH Client IP - 192.168.1.102 - rhel5-1 (rhel 5.5) Steps on Server- Here we are creating RSA Private/public key pair. Now copy public key as authorized_keys. Below is the Private key which needs to be copied. Copy Key from begin line to end line as below. Steps on Client - Create a file and paste copied key(form server) to this file. below we are using file name file1. This file(file1) permission shoud be either 600 or 400. Now login on Server using this private key(file1). If we don't want to use i option at the time of connecting as above then create a file .ssh/config and configure it as below. Now we will be able to login on server without using i option in connecting command.