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 !!#####
Share on Google Plus

About Penguin Technology

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

0 comments:

Post a Comment