Chinaunix首页 | 论坛 | 博客
  • 博客访问: 200965
  • 博文数量: 96
  • 博客积分: 1781
  • 博客等级: 上尉
  • 技术积分: 970
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-07 12:31
文章分类

全部博文(96)

文章存档

2014年(1)

2013年(14)

2012年(44)

2011年(37)

分类: LINUX

2011-08-08 13:53:40

在新的文件系统里IP=192.168.0.172,无法用PC ssh -l root 192.168.0.172 

但ssh -l root 192.168.0.171 是可以的。查了很多资料,终于发现是防火墙的问题。

Add a firewall rule

This is a good example of both adding a firewall rule to forward the TCP SSH port, and of the negative (-1) syntax used with uci.
root@OpenWrt:~# uci add firewall rule
root@OpenWrt:~# uci set firewall.@rule[-1].src=wan
root@OpenWrt:~# uci set firewall.@rule[-1].target=ACCEPT
root@OpenWrt:~# uci set firewall.@rule[-1].proto=tcp
root@OpenWrt:~# uci set firewall.@rule[-1].dest_port=22
root@OpenWrt:~# uci commit firewall
root@OpenWrt:~# /etc/init.d/firewall restart

之后就可以了。但我们原来的FW里没有添加防火墙,而是多了luci文件,两者的区别我会继续跟踪。

(二)第二天上班发现无法ssh 登录,检查发现是dropbear 进程没有启动。

     卸载原来的dropbear软件后重新安装问题解决。

阅读(1664) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~