D
D
Diversia2022-02-09 07:03:24
linux
Diversia, 2022-02-09 07:03:24

How to specify a subnet for ListenAddress in sshd?

Hello!
Please tell me how to specify several addresses for ListenAddress in the sshd configuration file?
For example, allow connection only from addresses: 188.125.252.0/24, 83.62.108.222

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2022-02-09
@Diversia

ListenAddress - a directive that determines on which interface the daemon will hang. It has nothing to do with access control. If you have several interfaces, you can specify several ListenAddress directives in the config

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question