Hide Linux Distro from SSH connections on Ubuntu
1 min readJun 17, 2020
If you want to hide Linux Distro in SSH Daemon when someone does telnet to port 22 or run ssh in verbose mode like below
# telnet 0 22
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
Simply add DebianBanner no
in /etc/ssh/sshd_config
and restart sshd daemon.
# telnet 0 22
Trying 0.0.0.0…
Connected to 0.
Escape character is ‘^]’.
SSH-2.0-OpenSSH_7.6p1
But you can’t hide OpenSSH_7.6p1.
To hide openssh version, you need to change OpenSSH source code and compile openssh again.
Ismail YENIGUL