deepin终端如何开启隧道
Tofloor
poster avatar
lnhxzwb
deepin
2019-09-04 00:58
Author
本帖最后由 lnhxzwb 于 2019-9-3 17:09 编辑

工作中需要开启终端隧道连接一些服务器,不知道deepin终端如何开启隧道,在windows中xshell是可以直接开启的

Reply Favorite View the author
All Replies
avatar
189******23
deepin
2019-09-04 07:49
#1
啥终端隧道?GRE?VPN?
Reply View the author
avatar
wtz
deepin
2019-09-04 15:48
#2
直接ssh可以嘛?
Reply View the author
avatar
1***6@qq.com
deepin
2019-09-04 16:44
#3
直接ssh -X不就行了啊。。。
Reply View the author
avatar
1***6@qq.com
deepin
2019-09-04 16:46
#4
ssh -X username@x.x.x.x
-X就是开启转发,
前提你本地要有xserver
Reply View the author
avatar
deepinuser17
deepin
2019-09-04 17:06
#5
本帖最后由 deepinuser17 于 2019-9-4 09:09 编辑

如果是连接Windows机器:
  1. 创建隧道连接Windows机器:
  2. ssh -fNL 3361::3360 <用户名>@<远端Linux机器A>

  3. xfreerdp --no-nla -a 16 -g 90% /v:localhost:3361
Copy the Code


如果是连接Linux机器B:
  1. 创建隧道连接Linux机器B:
  2. ssh -fNL 8822::22 <用户名>@<远端Linux机器A>

  3. ssh <用户名>@localhost -p 8822
Copy the Code


Linux机器B和Windows机器是在远端Linux机器的后面,不可直接连接.通过建立隧道,使用本地的端口连接
Reply View the author
avatar
159******10
deepin
2019-09-04 17:24
#6
Reply View the author
avatar
lnhxzwb
deepin
2019-09-20 19:28
#7
已经知道怎么做了,感谢各位
Reply View the author