ssh -N -L 192.168.1.104:2012:www.twitter.com:80 118.118.118.118
ssh -N -R 2012:127.0.0.1:22 118.118.118.118
# ssh -p 2012 localhost
Password: #输入内网 Linux 主机的 SSH 密码
Last failed login: Sat Nov 3 18:10:34 CST 2012 from localhost on ssh:notty
There was 1 failed login attempt since the last successful login.
Last login: Sat Nov 3 11:31:56 2012 from localhost
Have a lot of fun...
beyes:~ #
ssh -N -R 2012:127.0.0.1:80 118.118.118.118
# curl -G "http://127.0.0.1:2012" -o out.html
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 44 0 44 0 0 72 0 --:--:-- --:--:-- --:--:-- 0
# cat out.html <html><body><h1>It works!</h1></body></html>
[attach]1022[/attach]
# curl -G "http://127.0.0.1:2012" -o out.html
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2208 100 2208 0 0 3406 0 --:--:-- --:--:-- --:--:-- 0
# less out.html <html><head><title>127.0.0.1 - /</title></head><body><H1>127.0.0.1 - /</H1><hr>
<A HREF="/[SGER][SGT][Stargate.SG-1][%E7%AC%AC%E4%B8%80%E5%AD%A3]/">[SGER][SGT][Stargate.SG-1][第一季]</A><br> 2012/7/5
... ...
ssh -N -D 192.168.1.104:1080 188.188.188.188
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |