Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-04-2006, 04:24 AM   #1
LQ Newbie
Registered: May 2003
Location: Co
Distribution: Debian 3.0r2.Sarge
Posts: 25

Rep: Reputation: 15
SSH Pre-Login Message


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).

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!

Old 05-04-2006, 04:36 AM   #2
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


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
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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:03 AM.

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