使用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
相關文章
相關標籤/搜索