Report this

What is the reason for this report?

SSH not working

Posted on April 19, 2017

I’m having a problem using SSH to connect to any new droplets I have been spinning up. I am using a one-click app to create a Ubuntu Wordpress 4.7 on 16.04 droplet. When the droplet is first created, I can SSH using Mac’s Terminal successfully. However, once I log out and try to log in either with Terminal, or to use Sequel Pro, or Transmit to SSH into the server, the connection is refused.

Using Terminal to try to SSH in, here is the error log: OpenSSH_6.9p1, LibreSSL 2.1.8 debug1: Reading configuration data /Users/ameerbacchus/.ssh/config debug1: /Users/ameerbacchus/.ssh/config line 3: Applying options for * debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 21: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to 138.197.154.119 [138.197.154.119] port 22. debug1: connect to address 138.197.154.119 port 22: Connection refused ssh: connect to host 138.197.154.119 port 22: Connection refused

Using Sequel Pro, I get this error message:

The SSH Tunnel could not authenticate with the remote host. Please check your password and ensure you still have access.

Used command: /usr/bin/ssh -v -N -S none -o ControlMaster=no -o ExitOnForwardFailure=yes -o ConnectTimeout=10 -o NumberOfPasswordPrompts=3 -o TCPKeepAlive=no -o ServerAliveInterval=60 -o ServerAliveCountMax=1 root @138.197.154.119 -L 52774:127.0.0.1:3306

OpenSSH_6.9p1, LibreSSL 2.1.8 debug1: Reading configuration data /PATH/.ssh/config debug1: /PATH/.ssh/config line 3: Applying options for * debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 21: Applying options for * debug1: Control socket " none" does not exist debug1: Connecting to 138.197.154.119 [138.197.154.119] port 22. debug1: fd 3 clearing O_NONBLOCK debug1: Connection established. debug1: identity file /PATH/.ssh/id_rsa type 1 debug1: key_load_public: No such file or directory debug1: identity file /PATH/.ssh/id_rsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /PATH/.ssh/id_dsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /PATH/.ssh/id_dsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /PATH/.ssh/id_ecdsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /PATH/.ssh/id_ecdsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /PATH/.ssh/id_ed25519 type -1 debug1: key_load_public: No such file or directory debug1: identity file /PATH/.ssh/id_ed25519-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_6.9 debug1: Remote protocol version 2.0, remote software version OpenSSH_7.2p2 Ubuntu-4ubuntu2.1 debug1: match: OpenSSH_7.2p2 Ubuntu-4ubuntu2.1 pat OpenSSH* compat 0x04000000 debug1: Authenticating to 138.197.154.119:22 as 'root ’ debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client chacha20-poly1305@openssh.com <implicit> none debug1: kex: client->server chacha20-poly1305@openssh.com <implicit> none debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug1: Server host key: ecdsa-sha2-nistp256 SHA256:hl+ZkCGXBbWJUlKWyf2uWhLR3XcENlVSAi3TibfvDHU Warning: Permanently added ‘138.197.154.119’ (ECDSA) to the list of known hosts. debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,password debug1: Next authentication method: publickey debug1: Offering RSA public key: /PATH/.ssh/id_rsa debug1: Authentications that can continue: publickey,password debug1: Trying private key: /PATH/.ssh/id_dsa debug1: Trying private key: /PATH/.ssh/id_ecdsa debug1: Trying private key: /PATH/.ssh/id_ed25519 debug1: Next authentication method: password debug1: read_passphrase: can’t open /dev/tty: Device not configured debug1: permanently_drop_suid: 501 debug1: Authentications that can continue: publickey,password Permission denied, please try again. debug1: read_passphrase: can’t open /dev/tty: Device not configured debug1: permanently_drop_suid: 501 debug1: Authentications that can continue: publickey,password Permission denied, please try again. debug1: read_passphrase: can’t open /dev/tty: Device not configured debug1: permanently_drop_suid: 501 debug1: Authentications that can continue: publickey,password debug1: No more authentication methods to try. Permission denied (publickey,password).

The developer cloud

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

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.