摘要:安装openssl openssl-devel 不过有些centos自带 192.168.161.5  192.168.161.15

本版本用centos7

(192.168.161.5)

yum -y install openssl openssl-devel

接着

ssh-keygen -t rsa  #生成公钥密钥

一直默认回车到底

Centos7 ssh免密码登陆

cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys
ssh-copy-id -i 192.168.161.15

输入回车后接着密码

然后ssh 192.168.161.15 就不用再输入密码了

完成免密钥登陆

 

相关文章:

  • 2022-01-05
  • 2022-02-07
  • 2021-06-04
  • 2021-07-22
猜你喜欢
  • 2021-05-25
  • 2022-12-23
  • 2021-08-27
  • 2021-05-20
  • 2021-05-24
相关资源
相似解决方案