作者gt299792 (七动轴煤水车SL)
看板Linux
标题[问题] WSL ssh 连线问题
时间Sun Oct 10 21:49:23 2021
我刚刚试着使用 Windows 提供的 WSL (Windows Subsystem for Linux) 进行 ssh 连线到 ptt
连线方法为 ssh
[email protected]
得到「 Connection closed by 140.112.172.2 port 22
同台电脑,不透过WSL,直接在 powershell 中使用 ssh 却可以成功登入。
不了解为什麽会有此差异,请教一下大家,谢谢。
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 1.169.18.126 (台湾)
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Linux/M.1633873765.A.F02.html
1F:推 roccqqck: 最近用手机termius也是连不上 10/10 22:10
2F:推 holishing: 讲一下你 WSL 的 Ubuntu 版本,可以的话最好也把你的 10/11 01:20
20.04.3 LTS
3F:→ holishing: openssh-client 版本印出来让我们看 10/11 01:20
4F:→ holishing: apt list -a openssh-client 10/11 01:22
5F:推 alan23273850: 看 verbose message 吧 10/11 01:53
openssh-client/focal-updates,now 1:8.2p1-4ubuntu0.3 amd64
openssh-client/focal-security 1:8.2p1-4ubuntu0.2 amd64
openssh-client/focal 1:8.2p1-4 amd64
https://pastebin.com/qfpJtkNM
8F:推 holishing: 我测也遇到EOF, 然後自己架的pttbbs则是可以用 10/11 13:17
9F:→ holishing: 我猜 termius 应该是踩到 ptt 新版 sshd 的 bug 10/11 13:17
10F:→ holishing: 但那个还没开源无从证明 10/11 13:18
12F:→ holishing: 我也很好奇 Termius 的 Detect Shell Type Script 做了 10/11 13:21
13F:→ holishing: 什麽事情就是了 10/11 13:21
※ 编辑: gt299792 (1.169.18.126 台湾), 10/11/2021 23:53:25
※ 编辑: gt299792 (1.169.18.126 台湾), 10/11/2021 23:59:23
14F:推 skycat2216: TermUX的openssh/stable,now 8.6p1 aarch64 测试正常 10/12 07:49