LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-18-2003, 03:38 PM   #1
raiden4201
LQ Newbie
 
Registered: Oct 2003
Location: Dallas. Texas
Distribution: Mandrake 9.1
Posts: 9

Rep: Reputation: 0
Unhappy SSH Login Banner Display


I was trying to find some information on how to get my Mandrake 9.1 box to display a banner or MOTD before issueing a Login prompt during a SSH connection. I have been looking at the different ways like changing the /etc/issue file, the /ssh/sshd_config,the /hosts.allow. I have done these steps and it still does not seem to work. Is this even possible for the box to display a MOTD or Banner before issuing the login prompt. I can get the MOTD to display after login , but i mean at that point it is a little pointless. I am a real newbie so bare with me. If you need more information let me know. I have looked around and cant find anything on this clear in the forums. Thanks in adbance for any help.
 
Old 10-18-2003, 03:40 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Well, I know it is possible but I don't know how it is done. A long time ago I installed bastille and one of the options was to display a warning about logging into the server. Unfortunatly I don't know how bastille did it.
 
Old 10-18-2003, 03:43 PM   #3
raiden4201
LQ Newbie
 
Registered: Oct 2003
Location: Dallas. Texas
Distribution: Mandrake 9.1
Posts: 9

Original Poster
Rep: Reputation: 0
Yeah i know that there has to be a way. Linux was set up so that you could tweak your system to your liking unlike Mircroshaft. Hope someone will have the answer.
 
Old 10-18-2003, 04:01 PM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Re: SSH Login Banner Display

Quote:
Originally posted by raiden4201
Is this even possible for the box to display a MOTD or Banner before issuing the login prompt.
 
Old 10-19-2003, 09:26 AM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Take a look at the sshd_config manpage and search for Banner:
man sshd_config
 
Old 10-19-2003, 01:00 PM   #6
raiden4201
LQ Newbie
 
Registered: Oct 2003
Location: Dallas. Texas
Distribution: Mandrake 9.1
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by david_ross
Take a look at the sshd_config manpage and search for Banner:
man sshd_config
I already did this as stated in the first post i made. I still dont get the banner to come up before login.
 
Old 10-19-2003, 01:11 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
The banner is only available with protocol 2 and above as mentioned in the man page - are you using version 2 for both client and server? What client are you using?
 
Old 10-19-2003, 01:14 PM   #8
raiden4201
LQ Newbie
 
Registered: Oct 2003
Location: Dallas. Texas
Distribution: Mandrake 9.1
Posts: 9

Original Poster
Rep: Reputation: 0
I am using Putty from one machine and secure crt on the other. I know that the secure crt is running version 2. Now i can get the motd no problem after i log in. But i want to make it come up before the login prompt. That seems to be the only thing i cant find definite answers on the net for, other than making a tcp wrapper. Which i am still too new to get into that just yet.
 
Old 10-20-2003, 12:32 PM   #9
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
When using putty you need to tell it to only use ssh protocol 2 or go into your sshd config and only allow clients to connect with ssh protocol 2.
 
Old 03-01-2004, 10:37 AM   #10
dtufanio
LQ Newbie
 
Registered: Mar 2004
Posts: 1

Rep: Reputation: 0
If you look at the SSHd_conf file it should state the banner file name. I am running Red Hat 7.1, the banner is /usr/local/etc/banner. If you use this file it will display the banner after the login prompt and before the password is entered. Just edit the file to contain what ever banner you want to display between the fewd slashes, such as "/ banner content /"
 
Old 09-23-2006, 12:23 AM   #11
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Rep: Reputation: 32
So did you ever find a way to show upa banner or ACSII logo before the login prompt

because I haven't found answer yet

TT
 
Old 12-08-2008, 04:41 PM   #12
paranoid times
Member
 
Registered: Jan 2005
Distribution: Fedora Core 3, 4
Posts: 135

Rep: Reputation: 16
Since I like to be helpful and add to 5 year old threads

tommytomato I expect you have found your solution by now, but here is a good howto:
http://www.cyberciti.biz/tips/change...in-banner.html
 
1 members found this post helpful.
  


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
How to setup system Login banner and Login message 06-03-05 Linux - Newbie 13 07-24-2020 02:05 PM
VSFTPD banner display clinton Linux - Networking 2 03-17-2005 02:07 PM
SSH banner design garnser Linux - Software 1 10-16-2004 02:07 AM
Getting SSH to display mail on Login nrmx Linux - Software 0 03-26-2003 12:01 PM
change the banner for ssh [cacheflow] Linux - Security 5 09-16-2002 03:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:47 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