• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux activated firewall, blocked my ssh access

roriscrave

Advanced OT User
Joined
Dec 7, 2011
Messages
1,096
Solutions
34
Reaction score
182
Hello, i installed the firewall on my linux and now i can't access via ssh, any way to reverse this situation?

used
Lua:
sudo apt-get install ufw
when I try to access via ssh it appears: "Connection time out"
I believe that port 22 was blocked
 

Akela

Active Member
Joined
Dec 14, 2020
Messages
42
Solutions
2
Reaction score
25
There's some information here:

This (taken from that page) should make port 22 (SSH's well-known port) available again:
Code:
sudo ufw allow ssh

Note that it makes the port available to anyone, so you're back to being very insecure :)

This looks close to what you need (taken from the same source):
Code:
sudo ufw allow from 192.168.0.1 to any port 22
... except of course change "192.168.0.1" to the address you want to connect from.
If it's the same system, try the loopback address (127.0.0.1)

Note that the Firewall commands are relatively simple. I suggest you find a full list and play around with them.
These two links look quite good. I just looked at the first one that came up from the search for the reply above, but if I had ufw installed I think I'd start with linoxide.com for commands, maybe the second to see the GUI screen caps.

 
OP
OP
R

roriscrave

Advanced OT User
Joined
Dec 7, 2011
Messages
1,096
Solutions
34
Reaction score
182
If you are on OVH try enter with Recue Mode and disable it, or contact support.
I'm following this tutorial:

but i have doubt in this part, when mount a partition (he used sdb1):
1608241605502.png


but in my case, what partition i need to use?
My case:
1608241622124.png
 
Last edited:

Perun

nems.online
Joined
May 1, 2009
Messages
327
Solutions
7
Reaction score
143
I'm following this tutorial:

but i have doubt in this part, when mount a partition (he used sdb1):
View attachment 52642


but in my case, what partition i need to use?
My case:
View attachment 52643
sda3, you can try mount any disc u want
 
OP
OP
R

roriscrave

Advanced OT User
Joined
Dec 7, 2011
Messages
1,096
Solutions
34
Reaction score
182
Did you try listing the firewall rules, and if necessary setting rules to allow access to the SSH port?
on this recue mode firewall inst enabled, but if i restart game and try to enter, the firewall back to active;
what you using? OVH? use the OVH KMV login to enter the console and then use "ufw allow ssh"
i`m using ovh reseller, it costs 30$ :(
 
Top