Remote side unexpectedly closed network connection
처음엔 위와 같은 문구가 뜨더니
Network error: connection refused
다음번 부터 위와 같은 문구가 뜸.
(Ref. 1)을 따라해 보기로 했음.
(base) hanjg@DESKTOP:~$ dpkg -l | grep ssh
ii libssh-4:amd64 0.9.6-2ubuntu0.22.04.1 amd64 tiny C SSH library (OpenSSL flavor)
ii openssh-client 1:8.9p1-3ubuntu0.3 amd64 secure shell (SSH) client, for secure access to remote machines
ii openssh-server 1:8.9p1-3ubuntu0.3 amd64 secure shell (SSH) server, for secure access from remote machines
ii openssh-sftp-server 1:8.9p1-3ubuntu0.3 amd64 secure shell (SSH) sftp server module, for SFTP access from remote machines
ii ssh-import-id 5.11-0ubuntu1 all securely retrieve an SSH public key and install it locally
(base) hanjg@DESKTOP:~$ dpkg -l | grep openssh-server
ii openssh-server 1:8.9p1-3ubuntu0.3 amd64 secure shell (SSH) server, for secure access from remote machines
ssh와 비슷한 이름은 있는데 ssh가 없었음.
Error Correction
ssh를 설치하기로 함.
sudo apt-get update
sudo apt-get install ssh
-> 설치 후에도 같은 Error 발생.
위와 같이 wsl(Ubuntu)의 consol창을 실행 시킨 후 PuTTY실행 함. => 해결 됨.
Story
*처음에는 ssh가 설치 되어 있지 않어서 문제인줄 알았는데, 알고보니
-> wsl을 실행 해놓아야 활성화 상태가 되고 -> wsl(Ubuntu)에서 PuTTY가 연결 가능한 상태가 되나보다.