作者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/m.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