1. ssh-keygen
2. ssh-copy-id -p port user@remote
.ssh中建立并编辑config文件
原来需要 ssh -p ubuntu@xxx.xxx.xxx
现在:
传输文件