Hello,
I am removing all banners from services, but ssh is giving me a hard time. I run Debian and the ssh is openssh v4.3. Is there any option to remove the banner or i have to modify the source code to achieve that?
Thanks in advance.
Printable View
Hello,
I am removing all banners from services, but ssh is giving me a hard time. I run Debian and the ssh is openssh v4.3. Is there any option to remove the banner or i have to modify the source code to achieve that?
Thanks in advance.
Check the contents of your /etc/ssh/sshd_config for a line that looks something like:
Commenting it out and restarting the SSHD service should do it.Code:Banner /etc/ssh_banner
that line was already commented out, by the sshd. Either way i had already changed the banner in that file (issue.net in debian) to a misleading name. Because that line was already commented out i don't think it could affect the banner shown, but thanks for the tip. Any other ideas?
What exactly is the banner saying? Knowing that, you can grep for the message and find out which file it's coming from.
The banner is saying "SSH-2.0-OpenSSH_4.3p2 Debian-9etch2", but grep cannot find any file (in the ssh directory) including this specific string. Is it possible that the banner is hardcoded in the source code so i need to modify the code to remove it?
Take a look at the discussion on this bug report page.