2016年2月14日星期日

ssh tunnel from the phone

sometimes I want to share a photo from my phone via facebook, then I need ssh tunnel on phone.
As I used Android, I get VX connectbot from my local app store. It has port forward functionality build-in.
As I cannot always open putty on my laptop, I put the proxy into background
cat start_proxy.sh
{{{
nohup python proxy.py --port 8080 --hostname '' > proxy.log 2>&1 &
}}}


On my phone, the proxy setting is not at browser level, but at WALN setting, which means the network traffic of any app will go to the proxy, but interesting, the ssh tunnel itself didn't go to the proxy.

Don't forget to stop the proxy when you want to save money.

{{{
pkill -f proxy.py
}}}


没有评论: