Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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?
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.
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 /"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.