WSL 상에서 동작하는 Ubuntu 앱을 사용하면서 가장 불편한 점이 터미널이다. 윈도우에서 기본으로 제공하는 터미널을 사용해야 하기 때문에 폰트도 다르고 사용 편의성도 친숙하지 않는 것같다.


WSL 상에 동작하는 Ubuntu로 일반적으로 사용하는 터미널 프로그램(SecureCRT 나 putty 등)을 사용하여 ssh로 접속하는 방법을 찾아 보니 생각하던 그 방법대로 가능하다는 것을 알게 되었다.


1. install ssh

   % sudo apt install openssh-server


2. edit the sshd_config

   % sudo vi /etc/ssh/sshd_config

   change PasswordAuthentication to yes

   add AllowerUsers [ username ]


3. generate ssh key

   % sudo ssh-keygen -A


4. restart ssh service

   % sudo service ssh --full-restart


5. add Windows Firewall

   add inbound rules related to sshd


6. 참고자료

https://www.illuminiastudios.com/dev-diaries/ssh-on-windows-subsystem-for-linux/

https://gist.github.com/dentechy/de2be62b55cfd234681921d5a8b6be11

https://www.reddit.com/r/bashonubuntuonwindows/comments/5gh4c8/ssh_to_bash_on_wsl/


'컴맹의 컴퓨터 이야기 > 개발' 카테고리의 다른 글

[유틸] fisa vim config  (1) 2019.03.05
[팁] tortoiseSVN의 blame 기능  (0) 2014.08.25
[유틸] PowerMockup  (0) 2014.02.10
[팁] cygwin에서 mongo db 사용하기  (0) 2013.08.02
[팁] cygwin에서 libpcap 사용  (0) 2013.07.08