复习秘钥验证

回复 收藏
本帖最后由 ankang 于 2016-5-21 09:05 编辑

[root@localhost ~]# mkdir /root/.ssh
[root@localhost ~]# ls /root
anaconda-ks.cfg  install.log  install.log.syslog
[root@localhost ~]# ls -a /root
.   anaconda-ks.cfg  .bash_logout   .bashrc  install.log         .ssh
..  .bash_history    .bash_profile  .cshrc   install.log.syslog  .tcshrc

[root@localhost ~]# vi /root/.ssh/authorized_keys
[root@localhost ~]# chmod 700 /root/.ssh/
[root@localhost ~]# chmod 600 /root/.ssh/authorized_keys
[root@localhost ~]# setenforce 0
[root@localhost ~]# vi /etc/selinux/config
[root@localhost ~]# iptables -F
[root@localhost ~]# service iptables save
iptables:将防火墙规则保存到 /etc/sysconfig/iptables:     [确定]
[root@localhost ~]#
2016-05-20 23:17 举报
已邀请:

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: