Q
Q
Quad_Tree2017-05-22 17:34:59
linux
Quad_Tree, 2017-05-22 17:34:59

Why doesn't ssh work after setting allowed ip addresses?

I wrote ListenAddress 192.168.0.106 in sshd_config and then restarted sshd, but it did not start. As soon as I comment out this line again, sshd starts working after the restart command.
How to fix it? What logs to watch?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Melkij, 2017-05-22
@Quad_Tree

The ListenAddress is the address that the daemon is directly listening to, not the one where it listens for packets.
Of course, if you specify some address that is not on this machine, the daemon will not be able to bind the socket.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question