A机器想免密B机器

    • 在A机器上执行 ssh-keygen -t rsa 点三下回车

    • 使用ssh-copy-id -i .ssh/id_rsa.pub 用户名字@192.168.x.xxx

    • 修改B机器 vim /etc/ssh/sshd_config 开启

      1. - PubkeyAuthentication yes
      2. - RSAAuthentication yes
    • 重启服务 service sshd restart