Report this

What is the reason for this report?

Droplet connection refused using Windows SSH

Posted on October 6, 2024
Sam Hobbs

By Sam Hobbs

Software Developer

I have had a droplet for many months. Today I tried using the same SSH command in a Windows command prompt window that has worked in the past and I get:

ssh: connect to host droplet port 22: Connection refused

I can launch a Droplet Console from within DigitalOcean. The droplet is working and connects that way.

The following is the result of service ssh status.

ssh.service - OpenBSD Secure Shell server Loaded: loaded (/usr/lib/systemd/system/ssh.service; disabled; preset: enabled) Active: active (running) since Sat 2024-10-05 23:40:15 UTC; 20s ago TriggeredBy: ● ssh.socket Docs: man:sshd(8) man:sshd_config(5) Process: 15739 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS) Main PID: 15742 (sshd) Tasks: 1 (limit: 2353) Memory: 1.2M (peak: 1.4M) CPU: 32ms CGroup: /system.slice/ssh.service └─15742 “sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups”

Oct 05 23:40:15 ubuntu-vanilla systemd[1]: Starting ssh.service - OpenBSD Secure Shell server… Oct 05 23:40:15 ubuntu-vanilla sshd[15742]: Server listening on :: port 22. Oct 05 23:40:15 ubuntu-vanilla systemd[1]: Started ssh.service - OpenBSD Secure Shell server.

I have read articles and documentation indicating that Ubuntu is using SSH differently but I do not understand what to do about that if that is the problem.

I am using 24.04.1 LTS. The problem existed prior to a Linux version update and after the update.

How can I again use a Windows SSH command to log into the Droplet?

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.