ssh-copy-id 复制公钥到远程server

 

ssh-copy-id -i ~/.ssh/mykey.pub user@host

 

复制完成后能够测试:bash

ssh -i ~/.ssh/mykey user@host