- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Openssh display /etc/motd
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
Forums
Discussions
Discussions
Discussions
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
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
04-23-2002 08:58 AM
04-23-2002 08:58 AM
Also, can I set it so that it can display different motd for ssh login and telnet login?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 09:01 AM
04-23-2002 09:01 AM
Re: Openssh display /etc/motd
a file exists on your node and that it contains the message that you
want to have printed out.
bye
dom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 09:04 AM
04-23-2002 09:04 AM
Re: Openssh display /etc/motd
in add you can edit /etc/inetd.conf and change the lines below:
ftp stream tcp nowait root /usr/lbin/ftpd
telnet stream tcp nowait root /usr/lbin/telnetd telnetd -b /etc/motd
Then, issue this command:
inetd -c
so when you try to connect you can receive a message.
bye
dom.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 09:18 AM
04-23-2002 09:18 AM
Re: Openssh display /etc/motd
Your telnet -b option is for display of /etc/issue file only, not related to /etc/motd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 09:47 AM
04-23-2002 09:47 AM
SolutionPrintMotd yes
to
PrintMotd no
and restart sshd and that should take care of it. Basically let motd display being done from a shell (eg: /etc/profile), that way it will only be displayed once.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 09:50 AM
04-23-2002 09:50 AM
Re: Openssh display /etc/motd
If you want ssh to display different motd message, you can leave "PrintMotd yes" alone but in /etc/inetd.conf file change the "telnet" line to "....telnet -b /etc/warning". Basically create a separate file fot it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 10:15 AM
04-23-2002 10:15 AM
Re: Openssh display /etc/motd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 10:23 AM
04-23-2002 10:23 AM
Re: Openssh display /etc/motd
telnet stream tcp nowait root /usr/lbin/telnetd telnetd -b/etc/warning
login stream tcp nowait root /usr/lbin/rlogind rlogind -B/etc/warning
Note .. no space after the -b or -B options. In my /etc/warning (444 root:root) I got something like ..
********************
* This is a private ...
* ....
********************
For my /etc/motd it's called from /etc/profile and it has slightly different message than /etc/warning.