SSH 免密登录
ssh-keygen -t rsa -P "" scp -P 9832 /root/.ssh/id_rsa.pub renguoqiang@xxx.xxx.xxx.xxx:/tmp scp -P 9832 /root/.ssh/id_rsa.pub renguoqiang@xxx.xxx.xxx.xxx:/tmp cd /tmp cat .ssh/authorized_keys cat id_rsa.pub >> .ssh/authorized_keys sudo /bin/cp /tmp/id_rsa.pub /root cd /root cat .ssh/authorized_keys cat id_rsa.pub >> .ssh/authorized_keys
结果:未生效!
参考:
scp免密码拷贝和ssh免密码登录 - liuyihua1992 - 博客园
https://www.cnblogs.com/liuyihua1992/p/9602324.html
Linux SSH免密码登录与拷贝文件(SCP) - 技术改变生活 - CSDN博客
https://blog.csdn.net/xyang81/article/details/51477925