how to turn off the banner "SSH-2.0-OpenSSH_5.2"?

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat how to turn off the banner "SSH-2.0-OpenSSH_5.2"?
# 1  
Old 04-14-2009
how to turn off the banner "SSH-2.0-OpenSSH_5.2"?

how to turn off the banner "SSH-2.0-OpenSSH_5.2"?

I am using RedHat Advanced Server 4

Code:
#telnet localhost 22
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
SSH-2.0-OpenSSH_5.2


Last edited by Yogesh Sawant; 04-14-2009 at 06:01 AM.. Reason: added code tags
# 2  
Old 04-14-2009
A quick search for "openssh disable banner" told me this:
Code:
SSH-2.0-OpenSSH_5.2

The bold part has to present as it identifies which versions of the SSH protocol this server understands: 1.5 = SSHv1 only, 1.99 = SSHv1/2, 2.0 = SSHv2 only
The italic part is customizeable by editing version.h inside the OpenSSH source tree.
Source
# 3  
Old 04-14-2009
in /etc/default folder there is a file telnetd.

when you edit it
you will find the banner msg

like
BANNER="BLA BLA"

just remove it
BANNER=""

save the file you will not receive any msg while login
# 4  
Old 04-14-2009
Quote:
Originally Posted by amitranjansahu
in /etc/default folder there is a file telnetd.[...]
And what exactly is the connection between a configuration file for telnet(d) and SSH?
Quote:
Originally Posted by amitranjansahu
when you edit it
you will find the banner msg
[...]
save the file you will not receive any msg while login
Exactly, it's the login message. The banner above is sent by the SSH server to identify itself, long before any party even starts authentication (even before the session keys are negotiated)
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

2. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

3. UNIX for Dummies Questions & Answers

What is the significance of sh -s in ssh -qtt ${user}@${host} "sh -s "${version}"" < test.sh?

Please can you help me understand the significance of providing arguments under sh -s in > ssh -qtt ${user}@${host} "sh -s "${version}"" < test.sh (4 Replies)
Discussion started by: Sree10
4 Replies

4. Shell Programming and Scripting

How to enable "banner" for a user in solaris?

Password: Using keyboard-interactive authentication. Do you agree with the banner terms (y/n)?: y (4 Replies)
Discussion started by: frintocf
4 Replies

5. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

6. AIX

boot process stuck on "Welcome to AIX" banner

Good afternoon, I'm currently working on an IBM 9110-510, with an AIX 6.1 on it. Currently, I've put an HyperTerminal on the machine vty0. Folowing the procedure given by a support guy(§details), I'm able to get to the AIX banner ... (6 Replies)
Discussion started by: nilleb
6 Replies

7. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

8. UNIX for Dummies Questions & Answers

How to turn off "discard RIP response" message

I am running a solaris 10 box and is just a workstation. I want to turn off the message below since it is annoying me. Nov 15 12:16:07 stage5 in.routed: discard RIP response; source 134.56.105.2 not on interface eri0 This message only pops up when I am in a console. Telnet doesn't see it. ... (2 Replies)
Discussion started by: tecky
2 Replies
Login or Register to Ask a Question