U
U
uuuu2020-04-16 10:18:59
linux
uuuu, 2020-04-16 10:18:59

How to deny access to SSH?

Just discovered log feature in linux server...saw a bunch of connections per second from different IPs trying to login but wrong password. I would like to restrict access to only one IP. But there is a game server on the server and I don’t know how to do it right, because I can block access to players

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Alexander, 2020-04-16
@uuuu

1) move ssh to another port
2) configure key
authorization 3) install fail2ban
4) configure iptables (not recommended for beginners ) step 4
will allow you to leave only game ports and ssh open for access, and protect ssh step 1-3

I
Ilya, 2020-04-16
@New_Horizons

iptables ssh from specific ip

V
Vladimir Korotenko, 2020-04-16
@firedragon

Set up a key-only connection. All password pickers will immediately break off
https://netpoint-dc.com/blog/nastrojka-autentifika...

V
VSF, 2020-04-16
@Viksf

port knocking

A
Andrey, 2020-04-16
@achirik89

Port 22/1022 block. How convenient through a router or through iptables.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question