钉钉、微博极速扩容黑科技,点击观看阿里云弹性计算年度发布会!>>>
一、配置WSl1.WSL安装openssh-server# sudo apt-get install openssh-server2.配置sshd# sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak# sudo emacs /etc/ssh/sshd_configPort 2233 # 可不改ListenAddress 0.0.0.0PermitRootLogin yesStrictModes noPasswordAuthentication yes3.重启sshd服务# sudo service ssh restart* Restarting OpenBSD Secure Shell server sshd [ OK ]# ifconfig //拿到wsl的ip地址172.21.199.185二、配置powershell打开powershell# ssh [email protected] -p 2233Or# ssh [email protected] -p 2233