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! |
Usually /etc/motd will display when using ssh or telnet. Or the issue file in the same directory.
|
thanks
|
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?
|
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 |
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.
|
Hmm it should work no matter what, not sure why it aint...??
|
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. |