LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 05-17-2006, 07:25 AM   #1
shafey
Member
 
Registered: Aug 2005
Posts: 45

Rep: Reputation: 15
hide ssh banner


Hi
how could i hide ssh banner coz it print ssh version
am running centos 4
i need to hide my ssh version
plz help
thanks
 
Old 05-17-2006, 09:50 AM   #2
tizzef
Member
 
Registered: Jan 2005
Location: Nice, France
Distribution: Ubuntu,RHES, Mandriva, RHAS, AIX 4.3.3, 5.2 & 5.3, Debian,Solaris8/10
Posts: 119

Rep: Reputation: 20
it might be in the sshd_config (/etc/sshd_config) at the of the file.
 
Old 05-17-2006, 05:45 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,558
Blog Entries: 54

Rep: Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927
i need to hide my ssh version
OpenSSH sshd minimal "banner" is necessary for negotiation. Hiding sshd's banner is not a "fix". If you disagree you should explain in detail what the "problem" is and why you think banner hiding is a "fix".
 
Old 04-14-2013, 06:59 PM   #4
liefde
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Rep: Reputation: Disabled
Lightbulb adblockplus ;-)

Your ssh banner before login is set in /etc/ssh/sshd_config , so in sshd_config you can set it to say
Code:
Banner none
Furthermore, after succesful login, the ssh linux splash you see is usually configured via /etc/pam.d/sshd and/or /etc/pam.d/login
In those two files, look for the line that says
Code:
session optional pam_motd.so
and comment it out:
Code:
# session optional pam_motd.so
then of course save, close, reload.

If you ask me, those banners are a complete waste of valuable screen-space (and time). First thing I kick out with a new openssh installation.

Last edited by liefde; 04-14-2013 at 07:00 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
SSH Login Banner Display raiden4201 Linux - Newbie 11 12-08-2008 05:41 PM
LQ Banner bongenheimer LQ Suggestions & Feedback 12 10-31-2005 12:14 PM
How to change ssh banner in sshd.config pAn1k Linux - Networking 2 03-24-2005 05:46 PM
SSH banner design garnser Linux - Software 1 10-16-2004 03:07 AM
change the banner for ssh [cacheflow] Linux - Security 5 09-16-2002 04:03 PM


All times are GMT -5. The time now is 12:27 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration