LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1225|回复: 3

Fedora 与 ssh的使用

[复制链接]
发表于 2008-3-20 19:55:32 | 显示全部楼层 |阅读模式
本人虚拟了Fedora6,设置IP为192.168.1.109,并且能够上网,可以ping通windows的192.168.1.105.在win环境下安装了ssh v3.29.设置主机地址名为192.168.1.109.用户名为:root,端口为:22.在win环境下无法登陆到192.168.1.109.不知道为什么?据同事说这样是可以的.
   登陆ssh时的提示信息:
  the host
192.168.1.109
is unreached.
the host may be down,or there may be a problem with the network connection.Sometimes such problems can also be caused by a misconfigured firewall.
    请教各位有什么方法可以解决此问题。先谢谢了
发表于 2008-3-20 20:35:40 | 显示全部楼层
1. linux 中 sshd服务是否启动?
2. 防火墙iptables中是否开通了TCP 22端口 ?
3. sshd的服务配置中是否允许你windows的ip访问 ?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-3-20 20:47:50 | 显示全部楼层
Post by neoapple;1828891
1. linux 中 sshd服务是否启动?
2. 防火墙iptables中是否开通了TCP 22端口 ?
3. sshd的服务配置中是否允许你windows的ip访问 ?

iptable:
      Table: filter
Chain INPUT (policy ACCEPT)
num  target     prot opt source               destination         
1    RH-Firewall-1-INPUT  all  --  0.0.0.0/0            0.0.0.0/0           

Chain FORWARD (policy ACCEPT)
num  target     prot opt source               destination         
1    RH-Firewall-1-INPUT  all  --  0.0.0.0/0            0.0.0.0/0           

Chain OUTPUT (policy ACCEPT)
num  target     prot opt source               destination         

Chain RH-Firewall-1-INPUT (2 references)
num  target     prot opt source               destination         
1    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           
2    ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0           icmp type 255
3    ACCEPT     esp  --  0.0.0.0/0            0.0.0.0/0           
4    ACCEPT     ah   --  0.0.0.0/0            0.0.0.0/0           
5    ACCEPT     udp  --  0.0.0.0/0            224.0.0.251         udp dpt:5353
6    ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:631
7    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:631
8    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED
9    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:22
10   REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited


sshd:
    sshd (pid 1936) is running...

   关于第三点请问在那里设置.谢谢
回复 支持 反对

使用道具 举报

发表于 2008-3-21 16:32:00 | 显示全部楼层
/etc/ssh/sshd_config
你虚拟的Linux是通过什么方式连接主机Windows的?
NAT,还是桥接?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表