Linux no password ssh login (commonly known as open)

  
        

Overview

ssh, scp between some commonly used devices can save a lot of time without entering a password.

Generate Keys

First look at the local key. If there is, do not generate it, otherwise it will affect the previously opened devices. Ls ~/.ssh/id_rsa.pub

No, use ssh-key-gen to create a public key and key on the local host ssh-keygen -t rsa all the way back

Copy the key to the remote host

ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]

Log in directly to the remote host

ssh 192.168 .0.3 Log in directly without a password. From 192.168.0.3 on ssh this machine still needs a password, follow the above steps on 192.168.0.3, you can also omit the password.

Copyright © Windows knowledge All Rights Reserved