WSL Debian SSH 서버 설정

1 개요[ | ]

WSL Debian SSH 서버 설정
WSL 2 Debian SSH 서버 설정
Console
Copy
C:\Users\jmnote>wsl
testuser1@DESKTOP-VKP61Q8:/mnt/c/Users/jmnote$ sudo -i
root@DESKTOP-VKP61Q8:~# ss -tnlp
State    Recv-Q    Send-Q       Local Address:Port       Peer Address:Port
Console
Copy
root@DESKTOP-VKP61Q8:~# apt update
... (생략)
root@DESKTOP-VKP61Q8:~# apt install -y openssh-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
... (생략)
Created symlink /etc/systemd/system/multi-user.target.wants/ssh.service → /lib/systemd/system/ssh.service.
invoke-rc.d: could not determine current runlevel
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for systemd (241-7~deb10u4) ...
Console
Copy
root@DESKTOP-VKP61Q8:~# ss -tnlp
State     Recv-Q    Send-Q       Local Address:Port       Peer Address:Port   
LISTEN    0         128                0.0.0.0:22              0.0.0.0:*       users:(("sshd",pid=1472,fd=3))
LISTEN    0         128                   [::]:22                 [::]:*       users:(("sshd",pid=1472,fd=4))

2 같이 보기[ | ]

  • Linux용 Windows 하위 시스템
    마이크로소프트에서 부르는 정식 명칭이 "Windows 하위 시스템"입니다. (스크린샷 참고) 이 기능은 윈도우에서 제공되는 기능이므로 "서브시스템"보다는 "하위 시스템"으로 고쳐써야 맞을 것 같습니다. Ykhwong