Find the answer to your Linux question:
Results 1 to 6 of 6
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2008
    Posts
    4

    removing openssh banner


    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.

  2. #2
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    Check the contents of your /etc/ssh/sshd_config for a line that looks something like:
    Code:
    Banner /etc/ssh_banner
    Commenting it out and restarting the SSHD service should do it.

  3. #3
    Just Joined!
    Join Date
    Jul 2008
    Posts
    4
    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?

  4. #4
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    What exactly is the banner saying? Knowing that, you can grep for the message and find out which file it's coming from.

  5. #5
    Just Joined!
    Join Date
    Jul 2008
    Posts
    4
    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?

  6. #6
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    Take a look at the discussion on this bug report page.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •