ban host

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Is it possible to ban say all connections from * from connecting to
my ssh server? and if so, how?

Re: ban host

Quoted text here. Click to load it

If your SSH server supports tcpwrappers (OpenSSH does, I don't know about
other servers) you can use that.

Your sshd must be built with tcpwrappers (many vendors ship it that way,
or it can be built from source with "configure --with-tcp-wrappers"),
then put something like this into hosts.deny:


Darren Tucker (dtucker at
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.

Site Timeline