xshell远程连接wsl2

xshell远程连接wsl2

参考链接:

https://blog.csdn.net/lcuwb/article/details/82885920

卸载 ssh server

sudo apt-getremoveopenssh-server

安装 ssh server

sudo apt-getinstall openssh-server

修改 ssh server 配置

sudo cp/etc/apt/sources.list/etc/apt/sources.list.baksudo vim/etc/ssh/sshd_config

写入:

Port 22 #默认即可,如果有端口占用可以自己修改

PasswordAuthentication yes(允许用户名密码方式登录)

你可能感兴趣的:(xshell远程连接wsl2)