安装SSH KEY登陆
2019-06-26 本文已影响0人
Danielme
- ssh key 生成
全部缺省回车# 使用RSA算法生成公钥和私钥 ssh-keygen -t rsa
- 拷贝公钥到目标电脑
ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.1.51
- 测试
ssh root@192.168.1.51
# 使用RSA算法生成公钥和私钥
ssh-keygen -t rsa
全部缺省回车ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.1.51
ssh root@192.168.1.51