帮忙看看这个iptables,怎么ssh无法登录,提示port 22:connection refused

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
supsper
帖子: 8
注册时间: 2007-07-15 20:08

帮忙看看这个iptables,怎么ssh无法登录,提示port 22:connection refused

#1

帖子 supsper » 2007-10-22 13:45

Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT 0 -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:www
ACCEPT 0 -- anywhere anywhere
DROP 0 -- anywhere anywhere

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
头像
aitilang
帖子: 1026
注册时间: 2007-04-28 21:38

#2

帖子 aitilang » 2007-10-22 14:46

服务开了没?
thinkpad x61 2G DDR no cdrom
--------------------------------------------
ABS学习中
sed学习中
awk学习中
perl学习中
新手描述不清,老手猜测不到,胡乱指挥一通,后果难以预料
头像
aitilang
帖子: 1026
注册时间: 2007-04-28 21:38

#3

帖子 aitilang » 2007-10-22 14:46

代码: 全选

/etc/init.d/sshd status
thinkpad x61 2G DDR no cdrom
--------------------------------------------
ABS学习中
sed学习中
awk学习中
perl学习中
新手描述不清,老手猜测不到,胡乱指挥一通,后果难以预料
回复