SSH 协议使用技巧。
SSH 远程免密码登录设置:12345cd ~/.sshssh-keygenssh-copy-id username@ip //需要登录的远程主机的用户名和ip地址vim ~/.ssh/config #给主机编辑别名chmod 600 config
config 文件的编辑示例:1234567Host aliasHostname ipUser usernameHost alias2Hostname ip2User username2