- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ssh/telnet connection message
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
02-22-2006 10:24 PM
02-22-2006 10:24 PM
I've installed ssh in my hpux box 11i and I disabled the telnet connection in the inetd.sec, all run ok, but I want to show a message when somobody try to connect via telnet like:
"telnet connections are not allowed, use SSH"
Is possible to configure it??
Thansk and sorry for my poor english
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2006 10:30 PM
02-22-2006 10:30 PM
Re: ssh/telnet connection message
Edit /etc/profile,
ps | grep -q 'telnet'
if [[ ${?} -eq 0 ]]
then
echo "telnet connections are not allowed, use SSH"
sleep 3
exit 1
fi
Save the file and try. IT will give you this option.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2006 10:35 PM
02-22-2006 10:35 PM
Re: ssh/telnet connection message
You can do it via /etc/profile or .profile..
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2006 10:54 PM
02-22-2006 10:54 PM
Re: ssh/telnet connection message
I want to show the messageand refussed the connection before the user type the user/password.
Thanks for your reply again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2006 10:58 PM
02-22-2006 10:58 PM
Re: ssh/telnet connection message
You can try /etc/issue /etc/banner , putting the message ..
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=503331
-Arun
P.S Remember to assign poinits.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2006 11:20 PM
02-22-2006 11:20 PM
Re: ssh/telnet connection message
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2006 11:21 PM
02-22-2006 11:21 PM
Re: ssh/telnet connection message
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=TCPWRAP
It is free more. You can try with that.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2006 11:28 PM
02-22-2006 11:28 PM
Re: ssh/telnet connection message
With /etc/issue or /etc/banner can modify the telnet message, but I can't refuse the connection and show the message, before the system show the login prompt.
I need this:
When user try to connect via telnet to my server, the system doesn't show a login prompt, only show a customized message and refuse the connection.
Thanks a lot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2006 12:26 AM
02-23-2006 12:26 AM
Solutionjust a tought,
how about replacing
telnet stream tcp nowait root /usr/lbin/telnetd telnetd
in inetd.conf by
telnet stream tcp nowait root /usr/bin/echo echo telnet session are not allowed please use ssh
(all in one line of course)
Jean-Yves Picard