새소식

Knowledge/Base error correction

[Linux]PuTTY의 Network error connection refused/Remote side unexpectedly closed network connection 해결

  • -

하려던 것.

자고 일어나서 미리 설정해 놓은 MySession을 Load 해서 PuTTY에 접속하려 함

https://reconstructone.tistory.com/2

참조

Error

다음과 같은 문구가 뜸.

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가 연결 가능한 상태가 되나보다.

Reference

1. https://m.blog.naver.com/a5341663/221764145616

 

[PuTTY] PuTTY-SSH 접속 에러 (Network error: Connection refused) 해결 방법

포트포워딩을 정확히 하셨다는 조건 하에 작성된 포스팅 입니다. 아래 제시한 방법으로도 문제가 해결되지 ...

blog.naver.com

 

Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.