使用scp上传ssh公钥到服务器

$ 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
posted @ 2018-01-24 16:21  兜兜转转便是空  阅读(1327)  评论(0)    收藏  举报