xshell connection wsl

Wsl locally installed version ubantu18

 

// unload 
sudo APT- GET the Remove openssh- Server // install APT- sudo GET install openssh- Server vim / etc / SSH / sshd_config 
# amended as follows yes PermitRootLogin

Port 22
PasswordAuthentication yes
# Save and reboot ssh services service ssh restart

cd /home
EOF
cat > service11.sh << EOF  
sudo service ssh --full-restart
EOF
After restarting the computer at home only need to execute a script to log wsl xshell

Guess you like

Origin www.cnblogs.com/nhz-M/p/11207542.html