ssh-copy-id -i ~/.ssh/mykey.pub user@host 复制完成后可以测试: ssh -i ~/.ssh/mykey user@host 转载于:https://www.cnblogs.com/savokiss/p/10671442.html