linux服务器A远程免秘钥登录服务器B配置
1、ssh-keygen -t rsa
2、创建authorized_keystouch /root/.ssh/authorized_keyschmod 600 /root/.ssh/authorized_keys
3、复制公钥id_rsa.pub到authorized_keys
4、登录验证
ssh root@12.2.1.12 -p 22