| 항목 | 내용 |
|---|---|
| WSL 설치 | Windows Subsystem for Linux (WSL) 기반의 Ubuntu가 설치되어 있어야 합니다. |
| MobaXterm 설치 | 클라이언트 PC에 설치되어 있어야 합니다. |
| 동일 네트워크 | WSL 호스트 PC와 접속하려는 내부 PC가 같은 네트워크에 있어야 합니다. |
# WSL Ubuntu 터미널에서 아래 명령어 실행
sudo apt update
sudo apt install openssh-server
sudo nano /etc/ssh/sshd_config
아래 항목을 확인 또는 수정해주세요:
Port 22
PermitRootLogin yes # 또는 no (보안상 일반 사용자 로그인 권장)
PasswordAuthentication yes
sudo service ssh start
자동 시작 설정도 가능:
sudo systemctl enable ssh
WSL 환경은 가상 네트워크를 사용하기 때문에 일반적으로 localhost 접속은 외부에서 불가능합니다.
ip addr show eth0
또는 간단히:
hostname -I