Linux ssh key pair landed settings

SSH connection by the key

ssh -i ~/miyao.pem root@server_ip

Key To set permissions to read and write only the root user

chmod 600 ~/miyao.pem

Keys can be added to the system, the connection can be removed after the   -i   option

# Add the following line to the plurality of keys multiple rows 
IdentityFile ~ / miyao.pem
/etc/ssh/ssh_config

 

Guess you like

Origin www.cnblogs.com/saopanda/p/10900842.html