Question

SSH is not working for remote hosts

  • Posted June 29, 2013

I can login to SSH with web interface but it does not work from my Mac when I type

ssh root@IP

I have not setup SSH Keys. I wish to login with password.

Looks like I am missing something obvious. I had used other competing cloud services (not sure if I can mention it here) and I always could login.

Thanks

Subscribe
Share

Submit an 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.

The same problem that @rajamarwah .

What’s the output of ssh -vvv root@IP?

I am facing the same issue since yesterday and still no resolution, I tried the above steps and here where I stand, Restart the ssh didn’t work, webconsole works but not remote. Here’s the output:

OpenSSH_7.2p2, LibreSSL 2.4.1 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 20: Applying options for * debug2: resolving “139.59.112.218” port 22 debug2: ssh_connect_direct: needpriv 0 debug1: Connecting to 139.59.112.218 [139.59.112.218] port 22. debug1: Connection established. debug1: key_load_public: No such file or directory debug1: identity file /Users/Raj/.ssh/id_rsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /Users/Raj/.ssh/id_rsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /Users/Raj/.ssh/id_dsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /Users/Raj/.ssh/id_dsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /Users/Raj/.ssh/id_ecdsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /Users/Raj/.ssh/id_ecdsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /Users/Raj/.ssh/id_ed25519 type -1 debug1: key_load_public: No such file or directory debug1: identity file /Users/Raj/.ssh/id_ed25519-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_7.2 ssh_exchange_identification: read: Connection reset by peer

I faced the same issue today. Tried all the steps mentioned here, but no success. Eventually, did a power cycle, and was able to login. The only change I had made to my droplet before this problem occurred, was adding a crontab entry to start my service at reboot. Is there a better way known to solve this SSH issue?

Thank You! I am able to login now!

Please run the following commands: <br> <br>rm /etc/ssh/ssh_host* <br>dpkg-reconfigure openssh-server <br> <br>Restart ssh and you should be able to login.

My bad but nothing changed after I edited sshd_config <br> <br>I did ssh restart and then I also did reboot <br> <br>Here is sshd_config <br> <br>http://sprunge.us/gJEF <br> <br>I have not setup any ssh key with digital ocean <br> <br>I just created 1 droplet

The file you sprunged is /etc/ssh/ssh_config, make sure you’re editing /etc/ssh/ssh<strong>d</strong>_config

Yes. I edited file in droplet. <br>sprunged it <br>http://sprunge.us/AEcU <br> <br>Restarted ssh <br>It does not helped <br> <br>Then I did reboot <br> <br> <br> <br>

Did you edit /etc/ssh/sshd_config on your droplet? The file you pasted is ssh_config.