wsl ssh
2023-11-21 22:03:52
컴퓨터
WSL
set up ssh server and change its port number using /etc/ssh/sshd_config
then open the firewall
sudo ufw allow $PORT/tcp
WSL uses its own IP address thus you need to check the ip then set port forwarding using the command below.
Powershell
netsh interface portproxy add v4tov4 listenport=PORT listenaddress='0.0.0.0' connectport=PORT connectaddress=WSL_IP
▼ more