$sudo apt-get install openssh-server 配置Ubuntu sshd: $sudo vi /etc/ssh/sshd_config Port 22 Port 8222 重启ssh service生效 $sudo service ssh restart 可以用netstat -ntlp检查端口使用 $netstat -ntlp 查一下WSL2 Ubuntu虚机的IP $ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500...
Step 1: 设置SSH随WSL2自动开启 #Run this in WSL2sudo systemctlenable--now ssh Step 2: 测试SSH Jump连接正常 #In your local machinessh -J windows_user@windows_ip wsl_usrs@localhost Step 3: 设置本地的SSH config实现远程连接 Host wsl HostName localhost User wsl_user ProxyJump windows_user@...
$ curl https://localhost $ curl https://localhost:9000 Run Code Online (Sandbox Code Playgroud) 两个请求都成功了。 但现在我想使用网络浏览器访问我的 Windows 主机上的页面。第一个(默认)有效,我可以看到默认的 Nginx HTML 页面。第二个不起作用:网站无法访问。 所以我的问题: 1. 为什么会这样?我...
So you can't run SSH or any daemons (#994 (comment)) and you can't connect to servers run as Windows services (e.g. #3173). 😢 therealkenc mentioned this issue Mar 31, 2021 Run windows containers from WSL2 ? #6742 Closed spyro2000 commented May 5, 2021 • edited This ...
Please fill out the below information: Your Windows build number: 10.0.18917.1000 What you're doing and what's happening: (Copy&paste the full set of specific command-line steps necessary to reproduce the behavior, and their output. Incl...
I've noticed that from windows I could ping but no connect via ssh, then I resolved this and now I can connect but the error is the same. I have also looked that "UFW" did not have any blocking rule but I realised that was disabled, when I enabled and I added this...
一、用管理员权限还是出现cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running 先确定是否为window10专业版,其次打开window10的Docker> Settings > General: “Expose daemon on tcp://localhost:2375 without TLS”. ...
Error: Can't open display: localhost:10.0 OpenSSH hasbuilt-in codes for decoding the DISPLAY environment variable, and it obviously doesn't recognize thevsock/method since it's not in an official X-Window specifications. In such cases, you need to use an intermediate data relay program like...
cd '/usr/mysql-test' ; perl mysql-test-run.pl 然后: sudo systemctl start mariadb 运行Linux GUI 应用 https://learn.microsoft.com/zh-cn/windows/wsl/tutorials/gui-apps 启动GUI程序出现报错 cannot open display 的解决办法: 1 2 3 exportDISPLAY=:0 ...
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? 启动并配置 docker 启动docker jiangbo@jiangbo-work:~$sudo service docker start * StartingDocker:docker 加入docker 用户组 如果没有将当前用户加入 docker 用户组,则直接使用 docker ps 会得到下面的错误...