進入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