sunmingtao / sample-code

3 stars 4 forks source link

How to ssh without entering a password #218

Closed sunmingtao closed 3 years ago

sunmingtao commented 3 years ago

ssh-keygen (accept default value, enter, enter)

ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host

ssh remote-host remote host doesn't ask for password

Trouble shooting: https://www.thegeekstuff.com/2008/11/3-steps-to-perform-ssh-login-without-password-using-ssh-keygen-ssh-copy-id/