Solved

SSH Banner

Posted on 2002-05-15
5
1,423 Views
Last Modified: 2013-12-27
Can anyone tell how to config for SSH telnet login banner?

I am using PUTTY to connect to SSH on Solaris 2.6.

Thanks.
pok
0
Comment
Question by:pok040600
5 Comments
 
LVL 4

Expert Comment

by:Otetelisanu
ID: 7010631
For login banner is the file (for telnet)
/etc/issue

File Formats                                             issue(4)

NAME
issue - issue identification file

DESCRIPTION
The file /etc/issue contains the issue or project  
identification  to  be  printed as a login prompt. issue is an ASCII file that is read by program getty  and then written to  any terminal spawned or respawned from the lines file.

FILES
     /etc/issue

SEE ALSO
     login(1)

SunOS 5.7            Last change: 3 Jul 1990                    1

0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7012100
(Open)SSH only supports /etc/motd, see man sshd.
To enable it change /etc/ssh/sshd_config as follows:

   PrintMotd yes
0
 

Accepted Solution

by:
milamber_2000 earned 100 total points
ID: 7075590
By editting the sshd_config file you have two choices, and you can use both.

PrintMotd yes
- this will allow the contents of /etc/motd to be printed

Banner /etc/issue
- this will allow the contents of /etc/issue to be displayed. This can be any file that you name.

I recommend using both.

I suspect that the reason you can't see the /etc/issue displayed is because of Putty. If I use SecureCRT to login with ssh, I get a window that pops up displaying the contents of /etc/issue and after I log in it prints out /etc/motd, but when I use Putty, it only displays /etc/motd after I log in.
0
 
LVL 20

Expert Comment

by:tfewster
ID: 8052831
No comment has been added lately, so it's time to clean up this Topic Area.
I will leave a recommendation for this question in the Cleanup topic area as follows:

- Answered by milamber_2000

Please leave any comments here within the next 7 days

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

tfewster
Cleanup Volunteer
0
 

Expert Comment

by:SpideyMod
ID: 8099688
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now