对于家庭技术支持地狱(tm),我要进入ssh。
我的计划:
them@theircomputer$ ssh -L 5022:localhost:22 localhostme@mycomputer$ ssh -p 5022 them@theircomputer结果:ssh: connect to host theircomputer port 5022: Connection refused
很明显,ssh隧道应该是用来隧道请求而不是监听的。
我不想让他们通过ssh访问我的系统,这样就可以建立一个反向隧道。
我不想将端口5022转发到端口22,也不想让ssh永久地监听端口5022 (为了安全起见)。
如何在系统上临时将端口5022转发到端口22?(最好是在短的单线杆上!)
发布于 2013-09-15 10:37:26
更多的googling会导致ssh标志-g。
-g Allows remote hosts to connect to local forwarded ports.https://stackoverflow.com/questions/18804824
复制相似问题