By yutkin
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?
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!
For others that have this problem: Try using the IP address. I had just transferred the domain to cloudflare and cloudflare blocks everything except http/s traffic. To fix that, use the IP address directly or add a ssh.example.com entry to your DNS records. Or just use your local ~/.ssh/config to set your Host setting to your IP.
Don’t forget firewalls:
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.