“Fedora 17:启动ssh服务”的版本间的差异

来自Shiyin's note
跳到导航 跳到搜索
第2行: 第2行:


1.开启ssh服务
1.开启ssh服务
*#* systemctl start sshd.service
:* systemctl start sshd.service


2.随系统一起启动服务
2.随系统一起启动服务
*#* systemctl enable sshd.service
:* systemctl enable sshd.service


3.重新启动防火墙
3.重新启动防火墙
*#* 防火墙(system-config-firewall)默认是允许22端口的(# iptables -I INPUT -p tcp --dport 22 -j ACCEPT)
:* 防火墙(system-config-firewall)默认是允许22端口的(# iptables -I INPUT -p tcp --dport 22 -j ACCEPT)

2013年1月9日 (三) 09:07的版本

FC17默认的ssh竟然是关着的

1.开启ssh服务

  • systemctl start sshd.service

2.随系统一起启动服务

  • systemctl enable sshd.service

3.重新启动防火墙

  • 防火墙(system-config-firewall)默认是允许22端口的(# iptables -I INPUT -p tcp --dport 22 -j ACCEPT)