N
N
NastyaSaharok2018-01-02 18:57:23
linux
NastyaSaharok, 2018-01-02 18:57:23

How to log in to SSH by add. port?

Hello.
The goal is this:
there is a standard port 22 for SSH connections, it works and only 1 IP can connect to it.
How to make 1 more port for SSH connections so that you can freely connect to it, while 22 would also work with filtering by that type, and the second port would work without filtering.
It is desirable for more details)) Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2018-01-02
@NastyaSaharok

just add one more port to /etc/ssh/sshd_config Before
:
Now:

Port 22
Port 2222

And the IP restriction is most likely configured through iptables, that is, there will be no default restrictions for the new port.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question