LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-07-2005, 10:37 PM   #1
crud
Member
 
Registered: Jan 2005
Distribution: Slackware-10.1.0
Posts: 41

Rep: Reputation: 15
how to hide OpenSSH version ?


Hi there!
Well that is the question, how the hell can I hide OpenSSH version? I searched on OpenSSH documentation and Googled a hours, and I found nothing yet. That's what I want to hide, scanning with nmap for exemple gets that :

22/tcp open ssh OpenSSH 3.9p1 (protocol 2.0)

Somebody know how to hide it ?

Greets,

N*
 
Old 06-08-2005, 08:43 AM   #2
ledow
Member
 
Registered: Apr 2005
Location: UK
Distribution: Slackware 13.0
Posts: 241

Rep: Reputation: 34
1) Why would you need to? What do you think this will achieve?

2) Nmap is getting this information (I should think) from the way the software behaves, not it's version number. In much the same way that it differentiates between Linux 2.4 and 2.6 TCP/IP stacks... by passive analysis of how the software operates. That's not something that's going to be easy to change, short of rewriting the methods that OpenSSH uses and even then, I refer you back to 1).
 
Old 06-15-2005, 02:44 PM   #3
technician
Member
 
Registered: Jul 2003
Location: Wisconsin
Distribution: Slackware 10
Posts: 50

Rep: Reputation: 15
By showing the software version and name it's much easier for crackers to know their target, and potential bugs available to them. Masking it makes it that much harder.
 
Old 06-15-2005, 03:12 PM   #4
crud
Member
 
Registered: Jan 2005
Distribution: Slackware-10.1.0
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
By showing the software version and name it's much easier for crackers to know their target, and potential bugs available to them. Masking it makes it that much harder.
Exactly, for exemple, "nmap -p22 -sV 216.109.*.*" | grep OpenSSH-vunl-version" and I will be hunted if my openssh is vulnerable.

N*
 
Old 06-16-2005, 03:01 AM   #5
ledow
Member
 
Registered: Apr 2005
Location: UK
Distribution: Slackware 13.0
Posts: 241

Rep: Reputation: 34
Whatever you want to do.

This is the oft-mentioned "security through obscurity", often stated as "no security at all". Having no version number will not stop people from trying out known exploits on your OpenSSH. In fact, you will find that with no version number people will try EVERY exploit for EVERY version instead.

If you hide your version number, it says to me that you don't want people to know what version it is because it might not be the most up-to-date. That's ten times worse. Instead, running a known-secure version is a much better idea, limiting it's access to known IP's, using public-key encrypyion etc. will save you much more time and worry than trying to obscure the fact that you are running an insecure version.

I know of no way to hide the OpenSSH version short of patching the source (and I don't even know if that will work... again I think there are heuristics involved, not just a simple version number string, i.e. nmap is looking for the way OpenSSH responds to certain commands, etc. and completely ignores what version number it's actually reporting) and I don't see what it would achieve to do so. I feel that it's more likely to attract MORE attention that you are hiding version strings because that would suggest that they might be vulnerable versions.

You are opening a door to the world by running SSH... at least have a decent bouncer on a locked door rather than a sign that says "Access denied" on an unlocked door.
 
Old 06-16-2005, 05:58 AM   #6
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
From the www.openssh.com faq, quote:
2.14 - Why does OpenSSH report its version to clients?

OpenSSH, like most SSH implementations, reports its name and version to clients when they connect, e.g.

SSH-2.0-OpenSSH_3.9

This information is used by clients and servers to enable protocol compatibility tweaks to work around changed, buggy or missing features in the implementation they are talking to. This protocol feature checking is still required at present because the SSH protocol has not been yet published as a RFC and more incompatible changes may be made before this happens.
 
Old 06-16-2005, 06:04 AM   #7
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
If you really want the hide version feature for ssh,
there are only 2 options :
- hack the sources
- buy the commercial version of ssh

[edit]
as davidsrsb said, the version number is required anyway
Quote:
When the client connects the server, the server accepts the connec-
tion and responds by sending back its version identification string.
The client parses the server's identification, and sends its own
identification. The purpose of the identification strings is to
validate that the connection was to the correct port, declare the
protocol version number used, and to declare the software version
used on each side (for debugging purposes). The identification
strings are human-readable. If either side fails to understand or
support the other side's version, it closes the connection.
see http://www.free.lp.se/fish/rfc.txt

Last edited by keefaz; 06-16-2005 at 06:42 AM.
 
Old 06-16-2005, 12:35 PM   #8
crud
Member
 
Registered: Jan 2005
Distribution: Slackware-10.1.0
Posts: 41

Original Poster
Rep: Reputation: 15
Alright, many thanks, I think that I won't hide the version if it's required, I don't want to have problems

Regards,

C-
 
Old 06-16-2005, 12:54 PM   #9
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Also do no take the big guns
Quote:
"nmap -p22 -sV 216.109.*.*" | grep OpenSSH-vunl-version" a
Code:
telnet yourhost 22
That should be enough
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding distribution + kernel version + gcc version + glib version. JCipriani Linux - General 8 04-19-2008 02:54 PM
Solved how to hide Apache version number The Chain Linux - Software 0 11-18-2004 12:24 AM
Upgrading from an older version of openssh afruto Linux - Security 4 10-01-2004 11:27 AM
Need to hide bootloader ScribeOfTheNile Linux - Newbie 5 11-21-2003 07:42 AM
How do you hide your IP in Linux? javaarmy Linux - General 2 09-24-2003 09:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration