Hiding SSH Host Banner Doesnt work

Damien Miller djm at mindrot.org
Tue Jun 16 09:48:42 AEST 2020


On Mon, 15 Jun 2020, bo0od wrote:

> Im trying to hide the ability to show my host details from OpenSSH on
> GNU/Linux Debian using this method:
> 
> Add the following line to /etc/ssh/sshd_config
> 
> DebianBanner no
> 
> And restart your SSH daemon: /etc/init.d/ssh restart or service ssh restart
> 
> This doent change anything.
> 
> Another question why user cant hide SSH info as well? why it needs to be
> publicly visible? (I read that only recompiling would fix that but this is
> pain in the neck)

It's public because it's used to make compatibility decisions, see compat.c
in the OpenSSH source distrubution.

-d


More information about the openssh-unix-dev mailing list