[ssh]反向代理相关命令 |
[ssh]反向代理相关命令 |
2010-10-26 22:20:40, Tue
Post
#1
|
|
猫猫猫 Group: Power Cat Posts: 626 Joined: 2006-12-8 Member No.: 2 |
代码 ssh -qTfnN -D 7070 remoteuser@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. |
|
|
Lo-Fi Version | Time is now: 2024-11-1 10:43 |