【发布时间】:2020-06-02 11:51:47
【问题描述】:
我已经为我的电脑配置了 WSL,它在 WSL 终端中成功运行。
zoom@Zoom:/etc/ssh$ ssh zoom@localhost -p 2222
zoom@localhost's password:
Welcome to Ubuntu 20.04 LTS (GNU/Linux 4.19.104-microsoft-standard x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Tue Jun 2 19:42:24 CST 2020
System load: 0.0 Processes: 16
Usage of /: 0.9% of 250.98GB Users logged in: 0
Memory usage: 1% IPv4 address for eth0: myIpAddress
Swap usage: 0%
0 updates can be installed immediately.
0 of these updates are security updates.
Last login: Tue Jun 2 19:33:21 2020 from 127.0.0.1
但是,我无法使用 cmd 或 Clion 对 WSL 进行 ssh。
CMD:
C:\Users\Zoom>ssh zoom@localhost -p 2222
ssh: connect to host localhost port 2222: Connection refused
Clion ssh
I get this error
Can't connect to remote host: Connection refused: connect
我已尽力寻找解决方案。但是没有解决办法
这是关于我的 sshd_config 文件的一些信息:
ListenAddress 0.0.0.0
Port 2222
UsePrivilegeSeparation no
PasswordAuthentication yes
AllowUsers zoom
我真的很想知道如何解决它。
我的 Windos 版本是 2004 (os build 19635.1)。
WSL 版本为 2。
WSL 系统是 ubuntu-20.04
非常感谢!
【问题讨论】:
标签: linux windows clion windows-subsystem-for-linux