A question can only have one accepted answer. Are you sure you want to replace the current answer with this one?
You previously marked this answer as accepted. Are you sure you want to unaccept it?
When I change the Port in /etc/ssh/sshd_config I get "Connection refused" error. When Port is 22 I can connect to server without any problems. How to fix it?
After changing the ssh port are you restarting your ssh service?
service ssh restart
Unless the service is restarted the changes to your configuration will not take effect.
Of course, I restart ssh but it has not affected.
Did you open the new port your using in your firewall?
I don't use firewall, It is a new droplet. I follow step by step of this tutorial and earlier all work properly.
I have the same problem. SSH works on port 22, but on other port.
I use a LAMP droplet.
Did you manage to find an answer?
Add comments here to get more clarity or context around a question. To answer a question, use the “Answer” field below.