Search Suggest

المشاركات

SSH remote login without password

How to SSH remote login without password
Local IP Address:192.168.0.62
Remote IP Address:192.168.0.44

ssh-keygen : This command creates the public and private keys.
ssh-copy-id: This command copies the local-host’s public key to the remote-host’s authorized_keys file. 
 [root@server ~]# ssh-keygen

 [root@server ~]# ssh-copy-id -i /root/.ssh/id_rsa.pub 192.168.0.44











or,
If remote server ssh port change
[root@server ~]# ssh-copy-id -i .ssh/id_rsa.pub "username@192.168.0.44 -p 6987"

Now, for remote access:
[root@server ~]# ssh 192.168.0.44





#####Thanks for Visiting on my blog, Have a good Luck !!#####

إرسال تعليق