LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Telnet and ssh login message (https://www.linuxquestions.org/questions/linux-newbie-8/telnet-and-ssh-login-message-117543/)

digitalgravy 11-18-2003 04:33 PM

Telnet and ssh login message
 
I am running redhat 9. I have telnet and ssh working correctly.

I was wondering what file I would modify to insert a message to display a greeting when someone logs in.

I have looked on Google and I cant seem to find anything.

Thanks in advance!

trickykid 11-18-2003 05:17 PM

Usually /etc/motd will display when using ssh or telnet. Or the issue file in the same directory.

digitalgravy 11-18-2003 05:24 PM

thanks

wenberg 01-07-2004 09:32 PM

I run Slackware 9.1. It seems that on every reboot, /etc/motd is re-written to it's original state ... how do I prevent that?

Kristijan 01-07-2004 09:43 PM

wenberg in slackware9.1, edit the file /etc/ssh/sshd_config

Find and unhash this section

#Banner /some/path

So all you need to do is create you banner msg and put the path/file name into sshd_config

-Kristijan

wenberg 01-07-2004 10:26 PM

Thanks. That seemed to work. But what I was thinking was something text that appeared after login like an motd. Enabling banner seemed to show up on F-Secure SSH client, but not on putty, the client that most of my friends use.

Kristijan 01-07-2004 10:29 PM

Hmm it should work no matter what, not sure why it aint...??

wenberg 01-07-2004 10:35 PM

It works great actually ... but the banner shows up before the login prompt ... and not after.


All times are GMT -5. The time now is 04:31 AM.