Table of Contents
WSL2 – SSH 접속하기 with Putty
openssh 서버 설치
sudo apt update
sudo apt install openssh-server
sudo systemctl enable ssh
sudo apt install net-tools
sudo ssh-keygen -A
sudo vi /etc/ssh/sshd_config
......
PasswordAuthentication no >> yes
......
sudo service ssh start
sudo systemctl enable ssh
연결
아래 주소로 연결하면 된다.
아이디@localhost
X-Server
X-Server 앱을 실행시키기 위해서는 아래 명령을 입력해 주어야 한다.
아래 설정으로 X-Server 앱의 출력을 WSLg 가 아닌 VcXsrv 로 보낸다.
export DISPLAY=:10