1 desc
1.1 problem
i use wined MyEnTunnel to proxy some web services.i applied more than 100 updates today, and restarted computer, then i found wined MyEnTunnel doesn't work any more, no gui and no binded port, just a running process.
1.2 env
openSUSE 12.3 x86_64Tumbleweed repositories enabled
2 solution
use ssh command.> ssh -v -2 -N -D localhost:7070 -l {login_name} {ssh_server_host}
remove "-v" if you don't need verbose mode (means almost no information will be printed to stdin).
3 some details of process
3.1 try to fix wine
find wine log:"lsof -p {pid} | less" to show opened files by specified process.
i didn't find wine log, there's only ~/.xsession-errors, no useful information of wine.
new packages break wine, probably. i decided to use ssh command.
3.2 "Could not chdir to home directory"
connection closed, since "Could not chdir to home directory".# forbid chdir
-N Do not execute a remote command. This is useful for just forwarding ports (protocol version 2 only).
3.3 SOCKS
> man ssh/socks
-D [bind_address:]port
* Specifies a local “dynamic” application-level port forwarding.
* Currently the SOCKS4 and SOCKS5 protocols are supported, and ssh will act as a SOCKS server.
* The bind_address of “localhost” indicates that the listening port be bound for local use only, while an empty address or ‘*’ indicates that the port should be available from all interfaces.
"-L" doesn't work for proxy purpose.
3.4 MyEnTunnel proxy command
plink.exe {host} -N -ssh -2 -P 22 -l {login_name} -C -D 7070 -v4 references
* 利用lsof去查看Unix/Linux进程打开了哪些文件 - Author: ChrisWang - www.cnblogs.com* > man ssh
* ssh -D连接之后,如何防止服务器进程chdir到home目录下? - Author: 王冬 - www.zhihu.com
No comments:
Post a Comment