September 8, 2018 12:11 am
The SSH daemon validates SSH client access by Linux system verification via /etc/passwd, or by public/private key cryptography approach.
By using the public/private cryptography approach, we can do a SSH without password.
In my write-up it is for root-to-root connection. You can use it for user connections.
Steps 1: At the Host Machine
# chmod 700 .ssh
# cd .ssh
# ssh-keygen -t rsa
# ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host
(ssh-copy-id appends the keys to the remote-host’s .ssh/authorized_key)
Step 2: At the Remote Machine,
# ssh remote-host
References
Posted by kittycool only
Categories: SSH
Tags:
Mobile Site | Full Site
Get a free blog at WordPress.com Theme: WordPress Mobile Edition by Alex King.
[…] Remember to do the following SSH Login without Password […]
LikeLike
By Unable to open a connection to your SSH authentication agent – Linux Cluster on June 5, 2019 at 9:50 pm