LinuxSir.cn,穿越时空的Linuxsir!

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

如何用ssh做安全管道开通rlogin或rsh?

[复制链接]
发表于 2003-12-12 12:07:14 | 显示全部楼层 |阅读模式
系统中因需要开放rsh(512)端口,但为安全起见,向通过ssh安全管道转发, 请问怎样实现呢?谢谢!
发表于 2003-12-12 19:25:47 | 显示全部楼层
 楼主| 发表于 2003-12-13 06:14:38 | 显示全部楼层
谢谢版主,先拜读大文然后我试试看。
 楼主| 发表于 2003-12-13 14:16:16 | 显示全部楼层
linux下试了, 只有telnet成功了, rlogin, rexec都没有成功. 还有就是防火墙的对应端口也得开着, 不然也不成. 有什么办法即能加密又能将port转发使到不用default的port呢.
发表于 2003-12-14 08:46:57 | 显示全部楼层
这个是SSH的解决方法,道理就和windows下的端口转发一样的  
   -L port:host:hostport
             Specifies that the given port on the local (client) host is to be forwarded to the given host and port on the
             remote side.  This works by allocating a socket to listen to port on the local side, and whenever a connec-
             tion is made to this port, the connection is forwarded over the secure channel, and a connection is made to
             host port hostport from the remote machine.  Port forwardings can also be specified in the configuration
             file.  Only root can forward privileged ports.  IPv6 addresses can be specified with an alternative syntax:
             port/host/hostport

     -R port:host:hostport
             Specifies that the given port on the remote (server) host is to be forwarded to the given host and port on
             the local side.  This works by allocating a socket to listen to port on the remote side, and whenever a con-
             nection is made to this port, the connection is forwarded over the secure channel, and a connection is made
             to host port hostport from the local machine.  Port forwardings can also be specified in the configuration
             file.  Privileged ports can be forwarded only when logging in as root on the remote machine.  IPv6 addresses
             can be specified with an alternative syntax: port/host/hostport

还可以用stunnel来解决……

http://www-900.ibm.com/developer ... /s-stun/index.shtml

http://hammer.prohosting.com/~cachenow/forum/messages/6266.html

你可以参考这两个文章的
 楼主| 发表于 2003-12-16 01:50:09 | 显示全部楼层
恩,好文章,顶! 谢谢包子!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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