首页 > 代码库 > 密钥验证

密钥验证

技术分享

技术分享

技术分享

[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

技术分享

技术分享

 

 

 

 

    

 

密钥验证