LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-22-2004, 07:32 AM   #1
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 343

Rep: Reputation: 31
sshd & login message


Is any way to send ALL users a message when they login using ssh?
 
Old 04-22-2004, 08:01 AM   #2
silver2003
LQ Newbie
 
Registered: Apr 2004
Location: Romania
Distribution: RedHat 7.3
Posts: 28

Rep: Reputation: 15
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.
 
Old 04-22-2004, 02:55 PM   #3
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 343

Original Poster
Rep: Reputation: 31
"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
 
Old 04-23-2004, 04:27 AM   #4
silver2003
LQ Newbie
 
Registered: Apr 2004
Location: Romania
Distribution: RedHat 7.3
Posts: 28

Rep: Reputation: 15
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
 
Old 04-23-2004, 05:16 AM   #5
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 343

Original Poster
Rep: Reputation: 31
ok! worked - thx
 
Old 04-23-2004, 05:22 AM   #6
silver2003
LQ Newbie
 
Registered: Apr 2004
Location: Romania
Distribution: RedHat 7.3
Posts: 28

Rep: Reputation: 15
ok i fell good that i could helped you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to setup system Login banner and Login message 06-03-05 Linux - Newbie 10 03-11-2015 07:20 PM
Help ! cannot login via sshd kkempter Linux - Networking 5 03-03-2009 11:53 AM
sshd login error deesto *BSD 2 03-21-2005 07:47 PM
SSHD : control login attempts Ben2210 Linux - Security 0 02-07-2005 05:31 AM
strange sshd syslog message dunkyb Linux - General 1 12-30-2002 08:49 AM


All times are GMT -5. The time now is 06:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration