我最近在我的fedora 16中安装了ssh服务器openssh-server.我将我的朋友用户帐户添加到我的sshuser列表中.当我的朋友尝试使用以下命令通过ssh连接我的服务器计算机时
ssh sudip@192.168.1.123
然后它显示以下错误
ssh: connect to host 192.168.1.123 port 22: Connection refused
但当我从我的机器本地尝试服务器连接.
root@localhost /]# ssh sudip@192.168.1.123
sudip@192.168.1.123's password:
Last login: Tue Feb 26 13:24:42 2013 from localhost.localdomain
[sudip@localhost ~]$
此外,我的防火墙允许SSH和SHH在端口22上运行.
那我怎么能解决这个错误?
先感谢您.
编辑:
我已经使用服务sshd restart启动了sshd
EDIT2:
输出:iptables -n -L -v
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
46970 23M ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
11 616 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
133 8552 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
2328 343K REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Chain OUTPUT (policy ACCEPT 59145 packets, 7665K bytes)
pkts bytes target prot opt in out source destination
编辑3:traceroute 192.168.1.123的结果
traceroute to 192.168.1.123 (192.168.1.123), 30 hops max, 60 byte packets
1 192.168.50.1 (192.168.50.1) 0.828 ms 0.805 ms 0.818 ms
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
9 * * *
10 * * *
11 * * *
12 * * *
13 * * *
14 * * *
15 * * *
16 * * *
17 * * *
18 * * *
19 * * *
20 * * *
21 * * *
22 * * *
23 * * *
24 * * *
25 * * *
26 * * *
27 * * *
28 * * *
29 * * *
30 * * *
工作站也使用fedora 16