Monday, August 22, 2011

Login Remote System ssh Without Password | Linux Redhat Rhel5

First we need to create rsa Key
1)#ssh-keygen -t rsa
-t rsa it will create the RSA(Rivest, Shamir and Adleman) Key
it will creat the key with file name "id_rsa.pub" under the current user Home Directory.
If it is root mean /root/.ssh/id_rsa.pub
if it is redhat mean /home/redhat/.ssh/id_rsa.pub
ssh-copy-id it will install public key to the remote machine
then copy the id to the remote system, For first time it will ask the password.
Next it will not ask the password.
#ssy-copy-id -i /root/.ssh/id_rsa.pub remoteuser@remoteip
2)#ssh-copy-id -i /root/.ssh/id_rsa.pub hpc@151.8.27.214
While Copy the key it will ask the Password For enter the Login credentials.
AFter copy completed.
3)then try to login from the remote sytem. It doesn't ask any of the password.

0 comments:

Flag counter

free counters