- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Telnet hostname displayed
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
03-23-2006 07:00 AM
03-23-2006 07:00 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2006 07:06 AM
03-23-2006 07:06 AM
Re: Telnet hostname displayed
If you are concerned about hostname display for security reasons, consider turning off telnet altogether.
Here are some guides on how to make it display:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=194483
http://docs.hp.com/hpux/pdf/B2355-90148.pdf
This is good, because it shows how to make it display, hopefully providing the path to making it stop.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=978006
These guides will hopefully tell you how to do the reverse, since my search turned up nothing.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2006 05:02 PM
03-23-2006 05:02 PM
Re: Telnet hostname displayed
f you want to remove the pre-login text, just modify /etc/inetd.conf and add the -h option for telnetd. Here's what that line looks like on my 3.2-RELEASE test box:
telnet stream tcp nowait root /usr/libexec/telnetd telnetd -h
And from man telnetd you find this:
-h Disable the printing of host-specific information before login
has been completed.
Remember to HUP inetd to invoke these changes.
HTH,
Prabu.S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2006 05:18 PM
03-23-2006 05:18 PM
Re: Telnet hostname displayed
# touch /etc/emptrybanner
# chown bin:bin /etc/emptybanner
Edit /etc/inetd.conf file as,
telnet stream tcp6 nowait root /usr/lbin/telnetd -b /etc/emptybanner
which will not send hostname and ip-address informations.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2006 11:59 PM
03-23-2006 11:59 PM
Re: Telnet hostname displayed
$ grep -i telnet /etc/inetd.conf
telnet stream tcp nowait root /usr/lbin/telnetd telnetd -b /etc/issue
$ ll /etc/issue
-r--r--r-- 1 bin bin 0 Nov 24 07:59 /etc/issue
rgs,
ran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2006 12:45 AM
03-24-2006 12:45 AM
Re: Telnet hostname displayed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2006 01:43 AM
03-24-2006 01:43 AM
SolutionThose messages don't really tell the user anything the user would not be able to find out in other ways.
If the user enters the command "telnet somehost", the message "trying 123.456.789.012..." just reveals the IP address: the user could just as well find this out by entering the command "nslookup somehost".
The next message "Connected to somehost.dont.display (123.456.789.012)" just repeats the (full) hostname and the IP address together. If the full hostname is not the same as the one user entered, there may be several names associated with the IP address. That can be fixed only by changing the DNS names.
The only sure way to remove those messages would be to compile a customized telnet client. Most standard telnet clients print out those messages: you'd have to edit the source code to disable the messages.
Even then, users that can bring their own telnet binary to the system and run it to see the messages: running a telnet client does not require any special privileges, unless you're running a special OS like HP-UX 11.04 VirtualVault.
Besides, those messages are actually useful when diagnosing connection problems:
- if the connection hangs with no message at all, it is very likely a problem in resolving the server IP address
- if the connection hangs after the "trying
- if the connection hangs after "Connected to..." message, you know the communication between the client and the server works (the TCP three-way handshake was successfully completed) but the server just does not answer for some reason.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2006 02:00 AM
03-24-2006 02:00 AM