Linux Basic tutorial Linux password-free ssh login Settings
Brother Lian
Overview
in some common devices ssh, SCP, do not enter the password can save a lot of time.
Generate key
See if there is a local key, if there is, do not generate, otherwise it will affect the previous device.
Copy the code code as follows :(brother even Linux training www.lampbrother.net)
LS ~/.ssh/id_rsa.pub
do not use Ssh-key-gen to create public keys and keys on localhost
Copy the code code as follows :
SSH-KEYGEN-T RSA
Return
Copy the public key to the remote host
Copy the code code as follows :
Ssh-copy-id-i~/.ssh/id_rsa.pub
Log in directly to the remote host
Copy the code code as follows :
SSH 192.168.0.3
Log in directly without a password.
ssh native from 192.168.0.3 still need the password, follow the above steps on the 192.168.0.3 operation, can also omit the password.
Linux Basic tutorial linux password-free SSH login settings