本帖最后由 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 ~]#
[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 ~]#
编辑回复