Jump to content

[Solved] Locked myself out from SSH access (Ubuntu firewall/ufw)


Recommended Posts

Posted

It seems I accidently locked myself out from SSH access to the VPS:

I have enabled the Ubuntu firewall (ufw) on the VPS but have not added SSL before that (sudo ufw allow 'OpenSSH'). Now it seems only port 80 for web traffic is open but not port 22 for SSH ... beginner mistake. duh !!!

Could an administrator please log into my VPS and disable the firewall (sudo ufw disable)?
Edit: Alternatively, it would also be OK to redeploy the VPS.

Thank you.

Posted

I actually had the same experience a few days ago. After sudo reboot, I can't log in to ssh.
(I already chose to terminated this vps, Please don't mind my support)

https://discord.com/channels/398197622168616962/398538798994161664/1024134118222594129

A VPS that employs Ubuntu may experience this after a reboot.
I used Ubuntu 20.04 LTS when I signed up for VPS, and then upgraded to Ubuntu 22.04 LTS.
Also, I configured ufw a few days ago, so maybe there is a problem using ufw.
Since Krydos was able to console login, it looks like the root admin can recover this.Posting here is fine.

Posted
30 minutes ago, balloons said:

I used Ubuntu 20.04 LTS when I signed up for VPS, and then upgraded to Ubuntu 22.04 LTS.

Krydos and I have spoken on Discord and Krydos said they never recommend this. This seems to be the cause in my case.
For the OS upgrade, you should sign a new VPS contract and move the domain. Then stop the old VPS.

Posted (edited)
On 10/7/2022 at 9:04 PM, Krydos said:

Can you access SSH now? I ran the command

sudo ufw allow 22/tcp

 

Thank you very much for your support, Krydos! 

This solved the problem and SSH access works again. 

Florian

Edited by Krydos
fixed quotes
  • Krydos locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...