标签:linu linux 技术 cvs localhost com 验证 ssh span
[root@localhost ~]# mkdir /root/.ssh # 复制公钥 [root@localhost ~]# vim /root/.ssh/authorized_keysssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAu2+ypbJPqrYlLUbOYVkSHV4MRIfANEmG+jTEq+ujgD6vhfi0jSvUBrzWOdLvLe0Jod2dxpeZJobKyv6Drkwu7wfmdzmFxeCvSudu2/hXvG81oZtIvCHFSl6SEurUTjYPR8xx0lZH5aJoNpPCoehqgWpnBMYswMeZ7pqOP9uJ4iCkjXGvfkXw1aY8kiMdAHCXOObF2FZKNoUAgA6sJ6trwMBMT4JRqN9x66kgT4HJcyGI/PIsG46eVs/jr+QiV2B822TsifKyuEGLVLBY3hA4LIww53KqBAeXH6nuHE9V68M2nFk3aomceGqsElxyjsFNlVpfTs9hWefW8mSRbPCCnQ== rsa-key-20170526
[root@localhost ~]# chmod 700 /root/.ssh/
[root@localhost ~]# chmod 600 /root/.ssh/authorized_keys
[root@localhost ~]# setenforce 0
[root@localhost ~]# sed -i ‘s/SELINUX=.*/SELINUX=disabled/‘ /etc/sysconfig/selinux
[root@localhost ~]# iptables -F
[root@localhost ~]# service iptables save
标签:linu linux 技术 cvs localhost com 验证 ssh span
原文地址:http://www.cnblogs.com/pzk7788/p/6910904.html