- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to change telnet client default port?
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
тАО06-24-2007 10:34 PM
тАО06-24-2007 10:34 PM
From a hpux box if we issue the command
#telnet hostname
By default it connects to port No 23. I want to configure the telnet command to connect some other port.
How can i do this?
Thanks and Regards
--MGP--
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2007 10:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2007 10:50 PM
тАО06-24-2007 10:50 PM
Re: How to change telnet client default port?
If i change the port no in /etc/services. Then my telnet server daemon also will listen only in that new port. I don't want to disturb the telnetd daemon's port.
I want just like, whenever i issue the telnet command it should connect to some other port.
Thanks and Regards
--MGP--
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2007 10:50 PM
тАО06-24-2007 10:50 PM
Re: How to change telnet client default port?
telnet [[options] host [port]]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2007 10:53 PM
тАО06-24-2007 10:53 PM
Re: How to change telnet client default port?
This won't make the system more secure.
For more security, disable telnet and use ssh.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2007 11:07 PM
тАО06-24-2007 11:07 PM
Re: How to change telnet client default port?
You are right. But,
I have 2 hpux 11.11 servers.
From server A i am trying to connect server B via telnet
A# telnet B
password:
(logged into the Server B.)
B#netstat -a | grep A
tcp 0 0 B.22 A.58757 ESTABLISHED
The connection has established between the port no. 22.
and in the server B the telnet service itself is disabled in inetd.conf
and in server A the /etc/services the port no specified for telnet is 23.
Then how whenever i issue the command telnet servername it is connecting to 22 port instead of default 23 port?
can anyone please explain me?
Is there any relation between the sshd daemon and this?
Thanks and Regards
--MGP--
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2007 11:15 PM
тАО06-24-2007 11:15 PM
Re: How to change telnet client default port?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2007 11:27 PM
тАО06-24-2007 11:27 PM
Re: How to change telnet client default port?
Ya all r right.
when i tried stirngs /usr/bin/telnet and /usr/bin/ssh
the content is same.
I think for security purpose some admin has done this.
One more doubt.
In Server B telnet service is disabled in inetd.conf
But in netstat -a | grep LIST output. the telnet port is listening.
tcp 0 0 *.telnet *.* LISTEN
How this is happening?
Thanks and Regards
--MGP--
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2007 11:33 PM
тАО06-24-2007 11:33 PM
Re: How to change telnet client default port?
/usr/lbin/telnetd and /usr/sbin/sshd are also the same.
I find it strange to copy ssh over telnet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2007 11:35 PM
тАО06-24-2007 11:35 PM
Re: How to change telnet client default port?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2007 05:29 PM
тАО06-25-2007 05:29 PM
Re: How to change telnet client default port?
telnet calls getservbyname("telnet", "tcp")