1、生成 id_rsa id_rsa.pub
ssh-keygen -t rsa
2、编辑config
Host xxx.xxx.xxx.xxx
Hostname xxx.xxx.xxx.xxx
Port 8022
3、上传
ssh-copy-id -i ./id_rsa.pub luban@xxx.xxx.xxx.xxx
1、生成 id_rsa id_rsa.pub
ssh-keygen -t rsa
2、编辑config
Host xxx.xxx.xxx.xxx
Hostname xxx.xxx.xxx.xxx
Port 8022
3、上传
ssh-copy-id -i ./id_rsa.pub luban@xxx.xxx.xxx.xxx