Cannot connect remotely using SSH

November 14, 2014 2.1k views

Hi Everyone!

I am really a newbie and I tried following this tutorial for beginners but I have not been successful.

I am using ElementaryOS on my laptop to access my droplet but once I type and hit enter the command ssh root@ the reply I get is Connection closed by

Please help. The tutorial I was reading make it sound like it was easy for beginners like me to follow but I really could not figure out why I can not proceed to the second step because the first step bugged me down.

I also do not know how to proceed.

Any help is appreciated.

  • Had you done anything on the server previous to this? It sounds like possibly there is a permissions error with the host keys in /etc/ssh/ or perhaps the host keys were not generated at all? Running ls -lash /etc/ssh/ssh_host_* should show all the keys to be owned by root. sudo ssh-keygen -A should generate any missing host keys.

    If you haven't made any changes to the server yourself, there may have been an error somewhere in the provisioning process. If you don't have any data on it yet, I'd try just launching a new droplet and seeing if the problem is reproducible.

    Either way, please open a support ticket if you have yet done so.

  • As far as I know, I just changed my password using the Console. I also created an SSH key based on the tutorial found in the Digital Ocean community. This SSH key is generated after I created the droplet. Based on the tutorial, I copied and pasted the public rsa key. But still, I got the message that I just mentioned. I really connect make a connection therefore the SSH keys mean nothing at all.

    Please help... I really need this for my project due this coming Wednesday.

Be the first one to answer this question.