Sign in
Google apps
Main menu
Post a Comment On:
j4neiros
"SSH Passwordless Login Using SSH Keygen in 5 Easy Steps."
No comments yet. -
1 – 0 of 0
Step 1: Create Authentication SSH-Keygen Keys on the originating machine.
$ ssh-keygen -t rsa
On Windows you could use puttygen.exe
Use a passphrase to protect keys.
On Linux private key goes to .ssh/id_rsa
Public key goes to id_rsa.pub
Step 2: Create .ssh Directory on the destination machine.
Step 3: Upload Generated Public Keys to the destination machine.
$ cat .ssh/id_rsa.pub | ssh <username>@<destination_ip> 'cat >> .ssh/authorized_keys'
<username> should be the login on the destination machine.
<destination_ip> is the public IP of the destination machine.
Step 4: Set Permissions on the destination machine.
$ ssh <username>@<destination_ip> "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"
<username> should be the login on the destination machine.
<destination_ip> is the public IP of the destination machine.
Step 5: Login from originating machine to destination machine without password.
$ ssh <username>@<destination_ip>
<username> should be the login on the destination machine.
<destination_ip> is the public IP of the destination machine.
On Windows you could use putty.exe
Taken from https://www.tecmint.com/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps/
posted by J. Ernesto Aneiros at
6:50 AM
on Jul 3, 2021
Leave your comment
You can use some HTML tags, such as
<b>, <i>, <a>
Choose an identity
Google Account
You will be asked to sign in after submitting your comment.
Name/URL
Comment with your Google account if you’d like to be able to manage your comments in the future. If you comment anonymously, you won’t be able to edit or delete your comment.
Learn more
Name
URL
Anonymous
Comment with your Google account if you’d like to be able to manage your comments in the future. If you comment anonymously, you won’t be able to edit or delete your comment.
Learn more
Please prove you're not a robot
"SSH Passwordless Login Using SSH Keygen in 5 Easy Steps."
No comments yet. -