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.
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:
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 !!#####
0 comments:
Post a Comment