Fedora SSH 远程连接
参考:https://www.cnblogs.com/mawanglin2008/p/3773888.html
1、将端口22(或者自定义的其他端口)加到防火墙的设置中,标记为Accept
iptables -A INPUT -p tcp --dport 22 -j ACCEPT(这句很重要,不然外部连接不了。)
2、设置sshd开机启动
systemctl enable sshd.service
3、关闭防火墙firewalld
systemctl disable firewalld #永久关闭,即设置开机的时候不自动启动
4、启动sshd
service sshd start
还没有评论,来说两句吧...