WSL2
sudo apt-get remove --purge openssh-server
sudo apt-get update
sudo apt-get install openssh-server
sudo systemctl enable ssh
sudo systemctl start ssh
systemctl status sshd # Check SSH status
hostname -I # IP address of the WSL
Windows
netsh interface portproxy add v4tov4 `
listenaddress=192.168.0.14 ` # Internal addr of the windows
listenport=222 ` # An arbitrary port number
connectaddress=172.20.18.135 ` # IP addrs of the WSL
connectport=22 # The port number of WSL ssh
Additionally, you must add a new firewall inbound rule for port 222.
Router(iptime)
- Port forwarding (external port) 222 -> 192.168.0.14 / (internal port) 222
'컴퓨터꿀팁' 카테고리의 다른 글
[어도비 공식] PDF 파일 그림 JPG, PNG, TTIF 파일로 변환하는 사이트 (0) | 2024.05.28 |
---|---|
[어도비 공식] PDF 편집 무료로 온라인에서 하는 사이트 & PDF 역사 (0) | 2024.05.25 |
PDF 용량 줄이기 및 최적화 압축 온라인 웹에서 간편하게 하는 법 (0) | 2024.05.13 |
워드 / PPT / 엑셀 / PNG 파일 PDF로 온라인 변환 웹 (0) | 2024.05.07 |
대학 교재 전공 원서 다운로드 사이트 및 PDF 한 번에 웹 상에서 쉽게 합치는 방법 (0) | 2024.04.29 |