- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- disable telnet login but keep telnetd active
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
тАО08-28-2003 01:49 AM
тАО08-28-2003 01:49 AM
We do have a process though which uses the telnet -b {fileName} feature to gather some system information abouts our hosts.
The telnet daemon lists the content of {fileName} before the login prompt, so I can query info without actually logging in.
With ssh this does not work properly. Especially when the host key is not already known a user must interactively answer yes/no before the ssh banner file is shown. Also ssh connections to PA-Risc 1 machines is very slow (~8..10sec).
Does anybody know a solution?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 01:59 AM
тАО08-28-2003 01:59 AM
Re: disable telnet login but keep telnetd active
i do not clearly understand your problem.
Do you want to speed up ssh connections or to disable telnet logins?
or do you want a simple and secure way to export information from your server, without logging in ?
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 02:00 AM
тАО08-28-2003 02:00 AM
Re: disable telnet login but keep telnetd active
In our shop, I disable telnet service on all our product servers too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 02:01 AM
тАО08-28-2003 02:01 AM
Re: disable telnet login but keep telnetd active
But for ssh being slow you need to install the kernel random driver, then ssh is a lot quicker;
KRNG11i B.11.11.06 HP-UX 11.11 Strong Random Number Generator
You can download from www.software.hp.com.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 03:26 AM
тАО08-28-2003 03:26 AM
Re: disable telnet login but keep telnetd active
The purpose is to ping our network devices once a day and ask for some status information like Opsys, HW and contact.
Our machines are still on UX10.20 and we will stay there with an almost frozen environment.
From earlier forum discussions I understand that the slowness of ssh with UX10.20 on PA-Risc1 is a fact that can not be solved.
My problem is not so much ssh though but an easy and quick way to gather information from hosts.
We do not really need telnet for login purposes. Here we can use ssh although it is slow.
But for automated info gathering ssh is just too slow.
I do not fully understand the remsh answer.
We currently use telnet -b /etc/issue to get information from a host without even needing a login.
The drawback with telnet is that we can not use it solely for info gathering purposes. Once the daemon is up and running users can use it to log in (and I am sure they will, because ssh is so slow).
If I enable the remsh daemon, users could also use it to login to remote hosts and avoid the ssh as well. So I see no real improvement here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 03:34 AM
тАО08-28-2003 03:34 AM
Re: disable telnet login but keep telnetd active
Or creating a service, by yourself, that echoes to stdout the information and exit ?
I think that it should not be difficult to create such a thing, maybe with a simple script or perl program.
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 03:38 AM
тАО08-28-2003 03:38 AM
Re: disable telnet login but keep telnetd active
If you want to fully disable telnet go to /etc/ientd.conf and comment out the telnet line.
inetd -c
Any current connections will stay open until termination. This is normal behavior.
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
тАО08-28-2003 03:39 AM
тАО08-28-2003 03:39 AM
Re: disable telnet login but keep telnetd active
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=T1471AA
Someone keep smacking me so I remember to post in the darned link.
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
тАО08-28-2003 04:04 AM
тАО08-28-2003 04:04 AM
Solutioni did the following:
in /etc/services
massimo 5000/tcp # test massimo
in /etc/inetd.conf
massimo stream tcp nowait root /tmp/massimoput massimoput
cat /tmp/massimoput
#!/sbin/sh
cat /etc/issue
ll /tmp/massimoput
-rwxr-x--- 1 root sys 26 Aug 28 13:59 /tmp/massimoput
then:
inetd -c
after:
XXXXXXX:/tmp>telnet XXXXXXX 5000
Trying...
Connected to localhost.
Escape character is '^]'.
HP-UX XXXXXXX B.11.00 U 9000/879 219035322 unlimited-user license
Connection closed by foreign host.
You put in your file whatever you want.
It has been funny to invent this :)
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 04:10 AM
тАО08-28-2003 04:10 AM
Re: disable telnet login but keep telnetd active
Bye
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 04:43 AM
тАО08-28-2003 04:43 AM
Re: disable telnet login but keep telnetd active
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 04:45 AM
тАО08-28-2003 04:45 AM
Re: disable telnet login but keep telnetd active
and I even built a complete swinstall package.
Massimo: I tested your idea and it solves my problem. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 04:47 AM
тАО08-28-2003 04:47 AM
Re: disable telnet login but keep telnetd active
telnetd can be disabled without problem, what is needed is an open port.
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 04:49 AM
тАО08-28-2003 04:49 AM
Re: disable telnet login but keep telnetd active
You just need the telnet client to issue a connection to port XXXX.
There is no telnet daemon necessary on the target host and thus there is no login possible either.