进入Fedora LiveCD后sshd服务默认是没有开启来的,ssh需要手动开启来,开启之后需要给root添加一个密码,不然ssh登录不上的
[root@localhost ~]# systemctl enable sshd.service
ln -s '/usr/lib/systemd/system/sshd.service' '/etc/systemd/system/multi-user.target.wants/sshd.service'
[root@localhost ~]# systemctl start sshd.service
当然最好还是将 iptables 给关掉:
[root@localhost ~]# systemctl stop iptables.service
[root@localhost ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
看看服务是否开启来:
[root@localhost ~]# netstat -tunlp |grep ssh
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1697/sshd
tcp6 0 0 :::22 :::* LISTEN 1697/sshd