1.首先在一台服务器上生成公钥和私钥 [root@beh-1 ~]# ssh-keygen -t rsa ps:如果要设置无密码登录,那么在 Enter passphrase (empty for no passphrase): Enter same passphrase again: 这个地方直接回车就可以设置无密码登录。 2.然后分发公钥到要配置互信的主机地址上 [root@beh-1 ~
1、首先在A机器上生成私钥 使用ssh-keygen命令,然后一直回车 [zch@localhost ~]$ ssh-keygen Generating public/private rsa key pair.Enter file in which to save the key (/home/zch/.ssh/id_rsa): Created directory '/home/zch/
聊聊自己遇到的神坑,实在是哭笑不得,现将其理成笔记发布在博客上以供需要的小伙伴们参考 The authenticity of host 'slave2 (192.168.***)' can't be established.ECDSA key fingerprint is SHA256:Jax0HcY18c6EUe9S7BhwvmY02S86nqg5/j8fcV39WxE.ECDSA ke