老铁们,买了一个地区在外国的 vps,使用 powershell 的 ssh 访问卡卡的,怎么让 powershell 的 ssh 也走代理呀?

2024-08-17 22:58:07 +08:00
 atongrun

如题: 老铁们,买了一个地区在外国的 vps ,使用 powershell 的 ssh 访问卡卡的,怎么让 powershell 的 ssh 也走代理呀?

1862 次点击
所在节点    VPS
14 条回复
HolaPz
2024-08-17 23:36:31 +08:00
ssh -J <jump server> <remote server>
HolaPz
2024-08-17 23:37:22 +08:00
错了,上面是利用中转服务器。。
atongrun
2024-08-17 23:48:03 +08:00
@HolaPz 先用个国内的服务器这样?
shitshit666
2024-08-18 00:19:31 +08:00
试试 proxifier 这个强制代理的工具
YaD2x
2024-08-18 01:49:57 +08:00
finshell 简单,要不别用 powershell 了
hfJ433
2024-08-18 02:27:30 +08:00
装 sstap ,开全局模式
docx
2024-08-18 03:43:13 +08:00
如果不是必须 powershell ,换专用的 ssh 工具可以设置代理
DIO
2024-08-18 10:50:56 +08:00
powershell 的代理就是构思,经常要 tun
jim9606
2024-08-18 11:17:22 +08:00
这个 ssh 是 windows 自带的 openssh client,跟你用什么 shell 没关系。
想走 ssh 隧道用-J 选项,走 socks 比较麻烦需要依赖 nc 或者 socat ,用 ProxyCommand 选项,这个我想到的省事办法是去 msys2 扒一个来用。
opeopen client 的用法在所有系统中都是一样的。
klesh
2024-08-18 13:31:48 +08:00
git for windows 带的 git bash 有 ssh 和 connect 。在 .ssh/config 里面用下面的配置
```
ProxyCommand connect -S localhost:7890 %h %p
```

照理,把 connect 所在的目录加到 PATH 环境变量 ,在 powershell 里应该也是能用的。
clocean
2024-08-18 14:58:15 +08:00
clash tun 模式?
fsdrw08
2024-08-18 16:12:17 +08:00
这跟是不是 powershell 有个毛关系,ssh 本质上就是个 exe 程序,只不过通过 powershell 打开而已,不想卡就搞代理跳过去
HolaPz
2024-08-18 23:19:52 +08:00
@atongrun 买一个中转服务器,你本地连中转,中转连你目标服务器的两条线路都不错的就可以。
vopsoft
2024-08-28 13:48:33 +08:00

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1065797

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX