SSH via port 443 not responding; others ports OK

Hello Digital Ocean comrades,

I greet you as a newbie and, of course, with a basic question relating to challenges I am having getting an SSH connection to connect to port 443 on my Ubuntu droplet.

Let me first set the basics.

Installed and created droplet; followed instructions in excellent tutorials located at

have also reviewed and used portions of

Server is up and running. I was able to custom configure to connect to a specific port (27182) for SSH.

Now, I wish to add Port 443 connection for SSH. I have edited sshd_config to add Port 443 as well as Port 22

ufw has SSH enabled and ports 27182/tcp, 443/tcp and 22/tcp cleared for traffic.

From sshd_config

What ports, IPs and protocols we listen for

Port 27182 Port 443 Port 22

Use these options to restrict which interfaces/protocols sshd will bind to

from ufw

xxxxxxxxxxxxx:~$ sudo ufw status Status: active

To Action From

27182/tcp ALLOW Anywhere 80/tcp ALLOW Anywhere 443/tcp ALLOW Anywhere 25/tcp ALLOW Anywhere 27182/tcp (v6) ALLOW Anywhere (v6) 80/tcp (v6) ALLOW Anywhere (v6) 443/tcp (v6) ALLOW Anywhere (v6) 25/tcp (v6) ALLOW Anywhere (v6)

all edits to ssh_config were in nano and were saved. ssh was stopped then restarted

ufw has been reloaded.

I CAN telnet and puTTy connect to ports 27128 and to 22. I CANNOT get any sign of life from port 443… nothing… telnet never responds to it and puTTy spits a connection error when attempting 443 connection from a windoze box; terminal from my mac delivers same results. Can connect to 27182 and 22 from mac OK.

All my web research suggests I should be able to run an SSH connection though port 443… yet I cannot get it to work.

Any ideas on what I should do next to unplug port 443 connection? I am new with unix, so kindly be patient. No doubt this is going to be a very basic configuration error or misunderstanding on my part.

Thanks, michael

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Just pick another port for SSH, it is conflicting with your web servers https port (default 443)

Hello Mecarboy Have you got a webserver running, wich could use port 443 default? You can check your service running port with:

netstat -punta | grep 443

the -p flag will give you the process ID and the process name of whatever is using that port

the -u flag shows udp

the -n flag is for numerical addresses

the -t flag shows tcp

the -a shows listening and non-listening sockets