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.

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.

×
Submit an Answer
2 answers

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?

  • Yes, the server uses firewall (TCP/80, TCP/443, TCP/5222, UDP/10000, TCP/22, TCP/9090, TCP/30015, UDP/10000), but this firewall activates them by putty, when entering port TCP/22 $ sudo ufw allow 22/tcp the problem began, restart $ reboot the server and it did not let me enter again by putty or by the console in digitalocean.

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.

  • I could not enter the system, what I did was destroy the drop and create it again, now I use the DO firewall in the server configuration, but I generate errors, apparently the system only works with the ufw box (it makes me strange)