歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux教程

開啟Fedora LiveCD的SSH服務

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

Copyright © Linux教程網 All Rights Reserved