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!
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.
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.
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 /"