Using ssh keygen implement password free access to linux

  • 2020-05-13 04:17:55
  • OfStack

1. Create the ssh key natively

ssh-keygen

2 copy the public key to the "landing machine" and enter the password.

scp id_rsa.pub root@10.35.0.35:~/.ssh/id_rsa.pub

3. Enter the public key "authorized_keys" into "authorized_keys" into "authorized_keys" into "authorized_keys" into "authorized_keys" into "authorized_keys" into "rsa" into "rsa"

cat id_rsa.pub > > authorized_keys

4 this will achieve no password login

ssh root@10.35.0.35


Related articles: