컴퓨팅/리눅스 유닉스

Read from socket failed: Connection reset by peer

suinautant 2018. 6. 28. 16:33

SSH 접속 시 지연이나 끊기는 현상이 생기고, /var/log/secure 파일에 아래 로그가 보인다.

Read from socket failed: Connection reset by peer


SSH 키를 재생성해서 해결.

$ sudo ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key

$ sudo ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key