- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- remsh and the port number ?
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
11-12-2005 01:09 AM
11-12-2005 01:09 AM
Hi
Which port number used by remsh ???
I open port 514 in the firewall according to the /etc/services but I think its the wrong one ?
Regards
Abdul Majeed
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2005 01:26 AM
11-12-2005 01:26 AM
Re: remsh and the port number ?
Sorry, I found it 513 !!!
but the /etc/services gives wrong indication
exec 512/tcp # remote execution, passwd required
login 513/tcp # remote login
who 513/udp whod # remote who and uptime
shell 514/tcp cmd # remote command, no passwd used
syslog 514/udp # remote system logging
printer 515/tcp spooler # remote print spooling
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2005 01:31 AM
11-12-2005 01:31 AM
Re: remsh and the port number ?
The remshd is a part of inetd services and hence the inetd daemon invokes remshd if a service request is received at ports indicated by shell or kshell services specified in /etc/services. By default the port numbers are
shell 514/tcp cmd # remote command, no passwd used
kshell 544/tcp krcmd # Kerberos remote shell -kfall
Try looking at the port number 514.
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2005 02:16 AM
11-12-2005 02:16 AM
Re: remsh and the port number ?
Default port no of rmsh is 514 only. If u have already opened the port in firewall and still u are not able to do it, check wether the service is enabled in your system or no, check /etc/inetd.conf for
shell stream tcp nowait root /usr/lbin/remshd remshd entry, it should be enabled and the remshd daemon should be running.
Regards,
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2005 02:16 AM
11-12-2005 02:16 AM
Re: remsh and the port number ?
kshell stream tcp nowait root /usr/lbin/remshd remshd -K
entry too, it shouldn't be hashed out.
regards,
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2005 05:52 PM
11-12-2005 05:52 PM
Re: remsh and the port number ?
Hi,
I think I told in the begining the correct port is 513 not 514.
once I opend 513 in the firewall it went thru
regards
Abdul Majeed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2005 05:54 PM
11-13-2005 05:54 PM
Re: remsh and the port number ?
# remsh -l root localhost -n "sleep 1000" &
# netstat -na | grep 514
You have to open all ports related with r* commmands like rlogin, remsh, rexec and rcp.
512, 513 and 514 are related with r* commands.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2005 07:26 PM
11-13-2005 07:26 PM
Re: remsh and the port number ?
Hi,
I found that :
1) if you use just "remsh hostname", this will require rlogin which 513 means you have to open 513 on the other host
2) if you use "remsh hostname cmd", this will require 514 means you have to open 514 on the other host but also you have to open 1021 and 1022 on the local host as well
regards
AML
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2005 07:31 PM
11-13-2005 07:31 PM
Solution>>>
Yes correct. remsh hostname is nothing but rlogin hostname. Refer remsh man page. So it is using 513 port.
2) if you use "remsh hostname cmd", this will require 514 means you have to open 514 on the other host but also you have to open 1021 and 1022 on the local host as well
>>>
Yes. remsh hostname cmd will require 514 port. I don't think 1021 and 1022 is needed? what is there in /etc/services for 1021 and 1022 in your server? check with netstat -na | grep -E '1021|1022|514' and post the results also.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2006 07:15 PM
06-27-2006 07:15 PM
Re: remsh and the port number ?
If execut remsh(tcp514)on Host A, Host A source port will be tcp1020 > tcp1024 so remote Host has to repond back to Host A´s source port.
Firewall setting should be
A ---> B tcp514(remsh) accept
B ---> A tcp1020-tcp1024 accept