1.首先在一台服务器上生成公钥和私钥
[[email protected] ~]# ssh-****** -t rsa
linux配置互信

ps:如果要设置无密码登录,那么在 Enter passphrase (empty for no passphrase):
Enter same passphrase again:
这个地方直接回车就可以设置无密码登录。
2.然后分发公钥到要配置互信的主机地址上
[[email protected] ~]# ssh-copy-id [email protected] ssh-copy-id 用户名@主机IP地址
linux配置互信
ps:如果IP地址写的是主机自己的地址,那么就是和自己建立互信。

相关文章:

  • 2021-09-30
  • 2021-09-29
  • 2021-09-12
  • 2021-08-04
  • 2021-12-20
  • 2021-07-28
猜你喜欢
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案