Port 22 error! (Timeout error)

hello everyone, I have an error with port 22/tcp, my private server is in Digitalocean (Debian10), from the terminal “Putty” I have opened port 22, when reboot it generates an error when entering “time out”.

How can I correct this error?

thanks and regards Camilo A. Pimentel G.

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.

OK, my guess is that you have not allowed ssh. So the only solution is to use the console from do, and login via username/password. If you don’t have a root password for the droplet, then use the reset password feature, (which will reboot the server). then login to the console NOT using ssh. Then edit your firewall. BTW, I have opted to use the DO firewall rather than the ufw on the box. I know some people use both. Using the do firewall prevents you from doing what you just did and locking your self out. Hope this helps.

Are you using a firewall? Are you letting port 22 through the firewall? Do you have a server running on that port? Need a little more information to help out. What have tried so far to try and trouble shoot the issue?