HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rlogind complained about "Connection on illegal po...
Operating System - HP-UX
1833047
Members
2422
Online
110049
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
10-27-2004 02:19 AM
10-27-2004 02:19 AM
rlogind complained about "Connection on illegal port"
Hi all,
I'm setting up rdist job between servers across WAN. I need to setup remote trust between servers before I started(rlogin/remsh), but when I try rlogin from the rdist master server to clients, I always get "rlogind: Permission denied." and on the target server, I can find rlogind complained about "Connection on illegal port" in the syslog.
those 2 servers can rlogin to or accept rlogin within their own LAN, and tcpdump shows rlogin request always come from port 1023. But when I tried rlogin accross WAN, tcpdump shows the request came from some ramdom high port like 12055.
I'm just wondering, is port 1023 hard coded in the rlogin client binary, or is defined somewhere?
I'm setting up rdist job between servers across WAN. I need to setup remote trust between servers before I started(rlogin/remsh), but when I try rlogin from the rdist master server to clients, I always get "rlogind: Permission denied." and on the target server, I can find rlogind complained about "Connection on illegal port" in the syslog.
those 2 servers can rlogin to or accept rlogin within their own LAN, and tcpdump shows rlogin request always come from port 1023. But when I tried rlogin accross WAN, tcpdump shows the request came from some ramdom high port like 12055.
I'm just wondering, is port 1023 hard coded in the rlogin client binary, or is defined somewhere?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2004 02:33 AM
10-27-2004 02:33 AM
Re: rlogind complained about "Connection on illegal port"
How about checking /etc/services/klogin ..there shall be one defined the service port..
check your inetd.conf which also shall have this entry to make connections..
How is the trusting between two hosts..just check rlogin man page or remsh man page..
check for hosts.equiv or .rhosts files..
Thanks
Prashant
check your inetd.conf which also shall have this entry to make connections..
How is the trusting between two hosts..just check rlogin man page or remsh man page..
check for hosts.equiv or .rhosts files..
Thanks
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2004 02:45 AM
10-27-2004 02:45 AM
Re: rlogind complained about "Connection on illegal port"
thanks Prashant, /etc/service file defines port for servers (rlogind and remshd), but the problem here seemed to be the client port, I don't know if it's a designed behavior for rlogin(the client) to use static port 1023 on the client side to make request.
thanks
Gary
thanks
Gary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2004 03:35 AM
10-27-2004 03:35 AM
Re: rlogind complained about "Connection on illegal port"
OK, I think I found the answer. to use port under 1024 from the client is a security feature of the "remote" utilities family, because all these binaries have the set uid bit, only root can open port below 1024, so that the server knows the request did from "rlogin" client, not a fake request. And I also did tcpdump from the client, it also shows the request initiated from port 1023. But I still need to figure out how it ended up with other ports to the server -- must be some firewall rules along the way...
thanks,
Gary
thanks,
Gary
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP