您的位置:首页 > 运维架构

ssh-copy-id 安全地复制公钥到远程服务器上

2017-01-30 14:14 399 查看
[root@NB .ssh]# ssh-copy-id  -i id_rsa.pub " -p22 root@150.57.38.226"
root@150.57.38.226's password:
Now try logging into the machine, with "ssh ' -p22022 root@123.57.36.227'", and check in:

.ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.


#注意指定端口和用户@IP是用双引号的!!!!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: