Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
10-22-2011, 10:11 AM
#1
Member
Registered: Dec 2008
Location: Germany/Poland
Distribution: CentOS / Debian / Solaris / RedHat
Posts: 224
Rep:
How to disable SSH version banner ?
Hello Gurus,
I have a question concerning SSH Security.
Code:
fredy@fredy:~$ telnet server-name.com 22
Trying 88.xx.xx.xx...
Connected to server-name.com.
Escape character is '^]'.
SSH-2.0-OpenSSH_4.6 Debian-4
How to disable SSH version and Operating System banner ?
Thanks in advance
Dlugasx
Click here to see the post LQ members have rated as the most helpful post in this thread.
10-22-2011, 10:23 AM
#2
Member
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Kubuntu
Posts: 809
Rep:
There is a "Banner" option in "/etc/ssh/sshd_config". Set it to "none".
10-22-2011, 10:32 AM
#3
Member
Registered: Dec 2008
Location: Germany/Poland
Distribution: CentOS / Debian / Solaris / RedHat
Posts: 224
Original Poster
Rep:
Quote:
Originally Posted by
eSelix
There is a "Banner" option in "/etc/ssh/sshd_config". Set it to "none".
Thanks for the advice... but it doesnt work...
PL(Nie dziala niestety)
Does anybody knows how to remove SSH version and OS description from ssh ?
10-22-2011, 10:41 AM
#4
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Slackware 13.37, Debian Squeeze
Posts: 7,987
No such problem on a Debian Squeeze ssh host with the as-installed sshd_config. The Banner line is commented out. The ssh daemon startup script sources the ssh command line options from /etc/default/ssh. It has the line 'SSHD_OPTS=' so sets no options.
10-22-2011, 10:58 AM
#5
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Debian, FreeBSD
Posts: 3,749
Rep:
Quote:
Originally Posted by eSelix
There is a "Banner" option in "/etc/ssh/sshd_config". Set it to "none".
That behavior is supported only as of OpenSSH 4.8 or later:
http://www.openssh.org/txt/release-4.8
OP is running OpenSSH 4.6.
-------
@dlugasx: AFAIK, there is
no config or runtime option for disabling this in your OpenSSH version. You can:
Recompile the source, with the banner removed or changed. (Waste of time, IMO.) .. OR
Keep your system patched, and do not worry about it.
This falls into the security by obscurity category. Not a great use of your time or effort.
Last edited by anomie; 10-22-2011 at 10:59 AM .
2 members found this post helpful.
10-22-2011, 12:11 PM
#6
Member
Registered: Dec 2008
Location: Germany/Poland
Distribution: CentOS / Debian / Solaris / RedHat
Posts: 224
Original Poster
Rep:
Quote:
Originally Posted by
anomie
That behavior is supported only as of OpenSSH 4.8 or later:
http://www.openssh.org/txt/release-4.8
OP is running OpenSSH 4.6.
-------
@dlugasx: AFAIK, there is
no config or runtime option for disabling this in your OpenSSH version. You can:
Recompile the source, with the banner removed or changed. (Waste of time, IMO.) .. OR
Keep your system patched, and do not worry about it.
This falls into the security by obscurity category. Not a great use of your time or effort.
Thanks for advice...
02-10-2012, 08:15 PM
#7
LQ Newbie
Registered: Apr 2011
Posts: 13
Rep:
Really simple...
just add "DebianBanner no" to the /etc/ssh/sshd_config
*Note* Not sure if this works for other distros.
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 09:51 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News