- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- How to make Welcome message in linux - RHEL
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2009 02:58 AM
тАО12-31-2009 02:58 AM
I want to put some welcome message in linux.
For example if some one access my machine using ssh it should display first welcome message and then it should give Login prompt.
I know /etc/motd but it gives only after they login to the system.
Please help if some one know how to do this.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2009 05:45 AM
тАО12-31-2009 05:45 AM
Re: How to make Welcome message in linux - RHEL
If no username is configured, PuTTY will display a "login as:" prompt - but it happens *before* the SSH network connection is initiated. The connection is made only *after* the user specifies the username.
What you can do is make the sshd send a message just before authentication, whether it is by prompting for a password or by SSH keys. The instructions are in the sshd documentation: please see "man sshd_config".
Create a text file that contains your message, for example /etc/my-ssh-message.txt.
Then add to /etc/ssh/sshd_config file a line like this:
Banner /etc/my-ssh-message.txt
Restart sshd and you're done.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2010 07:40 PM
тАО01-03-2010 07:40 PM
Re: How to make Welcome message in linux - RHEL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2010 08:57 PM
тАО01-03-2010 08:57 PM
Re: How to make Welcome message in linux - RHEL
It is very simple, just need to have write access to the file located in the /etc folder and the complete path to the file is this:
/etc/motd
and here you can set whatever you want, and save it, and the next time you login via text-mode you will see that the message has changed to whatever you putted on the file.
Else check the link:
http://www.foogazi.com/2008/04/10/quickzi-how-to-add-a-welcome-message-for-ssh-users/
Rgds-Kranti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2010 10:38 PM
тАО01-04-2010 10:38 PM
SolutionTry using this!
Step 1:
Create a banner file that contains text you want people to see when connecting to your SSH server.
Create and open the banner file:
# vi /home/adam/banner
Add your text:
This is the banner file for test.com! Welcome!
Write the file and quit:
:wq
Step 2:
Edit sshd_config to set a default banner path.
# vi /etc/ssh/sshd_config
then add the following to the config file:
Banner /path/to/banner
Write the file and quit:
:wq
Step 3:
Restart the sshd server.
# /etc/init.d/sshd restart
Step 4:
SSH to your server and test to see if the banner is working:
# ssh adam@foogazi.com
This is the banner file for test.com! Welcome!
adam@test.com's password:
#