LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sshd & login message (https://www.linuxquestions.org/questions/linux-newbie-8/sshd-and-login-message-173271/)

JJX 04-22-2004 07:32 AM

sshd & login message
 
Is any way to send ALL users a message when they login using ssh?

silver2003 04-22-2004 08:01 AM

In the /etc/ssh/sshd_config you have the next line "print motd no" in your case set it on "yes" and after this you must edit the "motd" file that is located in /etc/motd. And this is all.

JJX 04-22-2004 02:55 PM

"print motd no" doesnt exist! [ /etc/motd file exist ]
I add it and i restarted sshd and i get this error:

Code:

/etc/ssh/sshd_config: line 80: Bad configuration option: print

silver2003 04-23-2004 04:27 AM

Write just like this "PrintMotd no" and set it to yes and see if it works.
I had a look in my sshd_config adn must be write like i have said above.
Sorry for that i was in a hurry.

CYA

JJX 04-23-2004 05:16 AM

ok! worked - thx

silver2003 04-23-2004 05:22 AM

ok i fell good that i could helped you.


All times are GMT -5. The time now is 09:17 AM.