|
楼主 |
发表于 2009-11-22 15:34:57
|
显示全部楼层
用另外一台linux系统的机器D代替B(D也有内网和外网各一个IP,分别为:10.0.0.3和203.203.203.203,并可以ssh登录),建立隧道成功并顺利登录:
######## 一、建立隧道 #########[abc@C:~]$ ssh -N -f -L 2222:10.0.0.0.1:22 abc@203.203.203.203
password:
######## 二、登录目标 #########[abc@C:~]$ ssh localhost -p 2222
The authenticity of host '[localhost]:2222 ([127.0.0.1]:2222)' can't be established.
RSA key fingerprint is b2:49:dd:40:27:03:0c:bb:2b:e5:09:94:ba:1f:d6:28.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[localhost]:2222' (RSA) to the list of known hosts.
Last login: Sun Nov 22 08:13:52 2009 from xxxxxx
######## 三、连接成功 #########
|
|