$ scp ~/.ssh/id_rsa.pub root@xxx.xxx.xxx.xxx:.ssh/id_rsa.pub
$ ssh root@xxx.xxx.xxx.xxx
$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
转载于:https://www.cnblogs.com/ailhc/p/8342237.html
$ scp ~/.ssh/id_rsa.pub root@xxx.xxx.xxx.xxx:.ssh/id_rsa.pub
$ ssh root@xxx.xxx.xxx.xxx
$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
转载于:https://www.cnblogs.com/ailhc/p/8342237.html