ssh -qTfnN -D 7070 username@remotehost
All the added options are for a ssh session that’s used for tunneling.
-q :- be very quite, we are acting only as a tunnel.
-T :- Do not allocate a pseudo tty, we are only acting a tunnel.
-f :- move the ssh process to background, as we don’t want to interact with this ssh session directly.
-N :- Do not execute remote command.
-n :- redirect standard input to /dev/null.
In addition on a slow line you can gain performance by enabling compression with the -C option.
本文详细介绍了如何使用SSH进行隧道配置,包括使用特定选项如-q、-T、-f、-N和-n等来优化SSH会话,使其仅作为隧道运行,并在特定网络条件下通过启用压缩进一步提高性能。
749

被折叠的 条评论
为什么被折叠?



