LinuxQuestions.org
Review your favorite Linux distribution.
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 11-18-2003, 05:33 PM   #1
digitalgravy
Member
 
Registered: Nov 2003
Posts: 86

Rep: Reputation: 15
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!
 
Old 11-18-2003, 06:17 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Usually /etc/motd will display when using ssh or telnet. Or the issue file in the same directory.
 
Old 11-18-2003, 06:24 PM   #3
digitalgravy
Member
 
Registered: Nov 2003
Posts: 86

Original Poster
Rep: Reputation: 15
thanks
 
Old 01-07-2004, 10:32 PM   #4
wenberg
Member
 
Registered: Jan 2004
Location: Minnesota, USA
Distribution: Slackware 10, Debian Sarge
Posts: 91

Rep: Reputation: 15
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?
 
Old 01-07-2004, 10:43 PM   #5
Kristijan
Member
 
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394

Rep: Reputation: 30
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
 
Old 01-07-2004, 11:26 PM   #6
wenberg
Member
 
Registered: Jan 2004
Location: Minnesota, USA
Distribution: Slackware 10, Debian Sarge
Posts: 91

Rep: Reputation: 15
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.
 
Old 01-07-2004, 11:29 PM   #7
Kristijan
Member
 
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394

Rep: Reputation: 30
Hmm it should work no matter what, not sure why it aint...??
 
Old 01-07-2004, 11:35 PM   #8
wenberg
Member
 
Registered: Jan 2004
Location: Minnesota, USA
Distribution: Slackware 10, Debian Sarge
Posts: 91

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


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
Automatting Telnet or SSH Login prashant_1012 Programming 6 09-12-2005 03:26 PM
SSH/Telnet, disable root login, how? muhazam Linux - Security 6 08-17-2004 01:49 PM
banner message before telnet login digitalgravy Linux - Newbie 3 12-19-2003 03:31 PM
Mandrake 9 - change telnet login message vrillusions Linux - Networking 2 02-04-2003 12:34 AM
SSH Login Message? John_Saunders Linux - Software 1 07-17-2002 05:26 PM


All times are GMT -5. The time now is 12:29 PM.

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