Report this

What is the reason for this report?

ssh_exchange_identification: read: Connection reset by peer

Posted on May 24, 2019

I keep having this issue, I have restarted the server already and still has this issue I used ssh --v and this is my log

OpenSSH_7.8p1, LibreSSL 2.7.3 debug1: Reading configuration data /Users/anazodosomto/.ssh/config debug1: /Users/anazodosomto/.ssh/config line 1: Applying options for * debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 48: Applying options for * debug2: resolve_canonicalize: hostname 68.183.227.27 is address debug2: ssh_connect_direct debug1: Connecting to 68.183.227.27 [68.183.227.27] port 22. debug1: Connection established. debug1: identity file /Users/anazodosomto/.ssh/id_rsa type 0 debug1: identity file /Users/anazodosomto/.ssh/id_rsa-cert type -1 debug1: identity file /Users/anazodosomto/.ssh/id_dsa type -1 debug1: identity file /Users/anazodosomto/.ssh/id_dsa-cert type -1 debug1: identity file /Users/anazodosomto/.ssh/id_ecdsa type -1 debug1: identity file /Users/anazodosomto/.ssh/id_ecdsa-cert type -1 debug1: identity file /Users/anazodosomto/.ssh/id_ed25519 type -1 debug1: identity file /Users/anazodosomto/.ssh/id_ed25519-cert type -1 debug1: identity file /Users/anazodosomto/.ssh/id_xmss type -1 debug1: identity file /Users/anazodosomto/.ssh/id_xmss-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_7.8 ssh_exchange_identification: read: Connection reset by peer

please help



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

I would recommend trying the following, login as root via the digital ocean console and set more strict permissions to your authorized_keys file:

chmod 700 /root/.ssh
chmod 600 /root/.ssh/authorized_keys

Then try to access the server via SSH again.

Hope that this helps! Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.