LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 05-04-2006, 04:24 AM   #1
DeadlySin3
LQ Newbie
 
Registered: May 2003
Location: Co
Distribution: Debian 3.0r2.Sarge
Posts: 25

Rep: Reputation: 15
SSH Pre-Login Message


Hello,

A friend of mine is running debian sarge with a 2.4x kernel and is running the webmin scripts to administrate his system, not my preference, but hey.. to each his own.

He was able to set a PRE login message upon connecting to his OpenSSH server (not the /etc/motd file).

Ex.
myAcct@localHost:~$ ssh -l myAcct example.friend.machine

And immediately... before i'm asked to enter a password, I see his message...


Welcome to my server. blah blah blah.

After I enter my password to log into his machine, I then see the /etc/motd.

I was curious how this could be done without using webmin? I've dug through the /etc/ssh/sshd_config file and searched the net to no avail. Anyone know how this could be done?

I'm running Debian Etch/Testing with a 2.6 Kernel - same OpenSSH server.

Thanks for the help!

-Paul
 
Old 05-04-2006, 04:36 AM   #2
lurker79
Member
 
Registered: Jan 2005
Location: UK
Posts: 55

Rep: Reputation: 16
There is a banner option in sshd_config
Banner /some/path

specify the file you wish to display before the login prompt
 
  


Reply



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 13 07-24-2020 02:05 PM
SSH Pre-Login Prompt dlublink Linux - Security 5 09-26-2005 08:43 AM
Can you change the Backspace key pre-login? craz69 Red Hat 2 08-17-2005 06:33 PM
Telnet and ssh login message digitalgravy Linux - Newbie 7 01-07-2004 10:35 PM
SSH Login Message? John_Saunders Linux - Software 1 07-17-2002 04:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:20 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
Open Source Consulting | Domain Registration