Windows
1. Xming 설치
2.PuttY 설정
Connection -> SSH -> X11 -> Enable X11 Forwarding 체크
MacOS
1. Xquartz 설치
2. /private/etc/ssh/sshd_config 수정
sudo vi /private/etc/sshd_config
# X11Forwarding no -> X11Forwarding yes 로 수정
3. 외부에서 요청한 X11 연결 허용
xhost +

Ubuntu
1. /etc/ssh/ssh_config 수정
sudo vim /etc/ssh/ssh_config
# FowardX11 no -> ForwardX11 yes 로 수정 후, 저장 (esc, :wq!)
Visual Studio Code
1. Remote - ssh 설치

'remote-ssh' 검색하여 설치
2. config 설정

Remote-SSH : Open SSH Configuration File... 클릭

Host : Remote - SSH 에서 보이는 이름
Hostname : 접속 주소
User : 접속 아이디
PubKeyAuthentication : 공개키 설정
IdentityFile : 키 경로
ForwardAgent : 인증 절차시 원격 컴퓨터로 포워딩 여부
ForwardX11 : X11 서버 포워딩 여부
ForwardX11Trusted : X11 포워딩 허용
compression : SSH 이전 압축 여부
3. SSH 접속

Remote-SSH:Connect to Host 클릭

Config 파일에서 설정한 Host 선택하면 연결이 완료된다.
