Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Disable OpenSSH identifier?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mwspitzer
n00b
n00b


Joined: 21 Nov 2006
Posts: 38

PostPosted: Fri Apr 06, 2007 8:18 pm    Post subject: Disable OpenSSH identifier? Reply with quote

I'm working on locking down a system and I've been requested to make it as tightened as possible. Right now the only access in is using ssh over a non-standard port. I noticed, though, that if I telnet to that port, it identifies itself as "SSH-2.0-OpenSSH_4.5". Is it possible to disable that identifier or is that required for the client machine to make the connection?

Thanks
Mike
Back to top
View user's profile Send private message
infinite1der
n00b
n00b


Joined: 31 Jan 2006
Posts: 52
Location: Atlanta, GA

PostPosted: Fri Apr 06, 2007 8:58 pm    Post subject: Reply with quote

Looking at sshd.c under sshd_exchange_identification{}, there are "send our version", "get their version", and "check for mismatch" bits. So, I don't think you could easily remove that.
_________________
----------------------
James A. Thornton
Atlanta, GA

How To Ask Questions the Smart Way
Back to top
View user's profile Send private message
matze_na
n00b
n00b


Joined: 04 Apr 2007
Posts: 54
Location: Germany

PostPosted: Fri Apr 06, 2007 10:39 pm    Post subject: Reply with quote

As a workaround, you could have a look at port knocking (see here), so sshd doesn't respond at all unless a specified sequence is sent before.
Back to top
View user's profile Send private message
konqueror
Tux's lil' helper
Tux's lil' helper


Joined: 16 Mar 2003
Posts: 76

PostPosted: Sat Apr 07, 2007 7:26 am    Post subject: Reply with quote

i dont think u can really get rid of the version sending - there's an faq answer somewhere saying that that is needed to coordinate the protocol properly between the 2 systems... Unless u of course, hack into the source for *both* client, and server, and hard-code the version that they will use...
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Sat Apr 07, 2007 9:21 am    Post subject: Reply with quote

besides the fact that security by obscurity doesn't really work (but attract bad guys maybe even more) it is a bad idea in this case, see http://www.openssh.org/faq.html#2.14
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
konqueror
Tux's lil' helper
Tux's lil' helper


Joined: 16 Mar 2003
Posts: 76

PostPosted: Sat Apr 07, 2007 9:24 am    Post subject: Reply with quote

Think4UrS11 wrote:
besides the fact that security by obscurity doesn't really work (but attract bad guys maybe even more) it is a bad idea in this case, see http://www.openssh.org/faq.html#2.14


ahh, u found the faq item! :)
Back to top
View user's profile Send private message
kamikaze04
Guru
Guru


Joined: 28 Mar 2004
Posts: 366
Location: Valencia-Spain

PostPosted: Sat Apr 07, 2007 2:10 pm    Post subject: Reply with quote

It is easy to change it, go to the source, untar it, and edit version.h (i think it was the name of the file, i'm sure it was a .h file for sure). Change it, tar it again, adn create the correct digest again with

ebuild /path/to/portdir_overlay/file.ebuild digest

after that emerge the openssh as usual. :)

I've got it working in some of the servers i work with.
_________________
Todo lo que quisiste saber sobre google en: www.noticiasgoogle.es
Back to top
View user's profile Send private message
konqueror
Tux's lil' helper
Tux's lil' helper


Joined: 16 Mar 2003
Posts: 76

PostPosted: Sat Apr 07, 2007 2:26 pm    Post subject: Reply with quote

kamikaze04 wrote:

I've got it working in some of the servers i work with.


so u're saying that on those servers, a telnet to the ssh port will not reveal the ssh version?
Back to top
View user's profile Send private message
kamikaze04
Guru
Guru


Joined: 28 Mar 2004
Posts: 366
Location: Valencia-Spain

PostPosted: Sat Apr 07, 2007 9:37 pm    Post subject: Reply with quote

That's exactly what i'm saying. I show a complete different version from the one it is installed
_________________
Todo lo que quisiste saber sobre google en: www.noticiasgoogle.es
Back to top
View user's profile Send private message
mwspitzer
n00b
n00b


Joined: 21 Nov 2006
Posts: 38

PostPosted: Tue Apr 10, 2007 12:33 am    Post subject: Reply with quote

Thanks for all of the responses guys; I'll just leave it as it is. I'm confident it's as secure as I can resonably make it, but this was one other thing I'd never tried before.

Mike
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum