cd ~/.ssh ssh-keygen -t rsa scp ./id_rsa.pub root@192.168.1.1:/root/.ssh/authorized_keys 转载于:https://www.cnblogs.com/dogharry/p/4701129.html