2012年6月27日

在Linux上建立ssh隧道(转)

摘要: ssh -L 7070:localhost:* remotehost上 面的命令行中,-L指定本地端口与远程主机端口之间的隧道,7070是本地端口,可以任意设置,只要不和其他已经使用的网络服务冲突就可以。localhost是本地主机,也就是你的电脑,不用更改,*号可以自动寻找远程主机可用的端口。remotehost就是所要登录的远程SSH主机名称。ssh -qTfnN -D 7070 remotehostAll the added options are for a ssh session that’s used for tunneling.-q :- be very quite, we ar 阅读全文

posted @ 2012-06-27 15:50 云中道长 阅读(267) 评论(0) 推荐(0) 编辑

导航