REXEC or SSH setup
REXEC and SSH rely on services provided by INETD (Internet Daemon), which is another TCP/IP service. Communications Server IP Configuration Guide (SC31-8775) describes the steps required to set up INETD, REXEC, and SSH.
A common port used by REXEC
is
512
. To verify the port being used, check /etc/inetd.conf
and /etc/services
.
- Find the service name (1st word,
exec
in this example) of therexecd
server (7th word) in/etc/inetd.conf
.exec stream tcp nowait OMVSKERN /usr/sbin/orexecd rexecd –LV
- Find the port (2nd word,
512
in this example) attached to this service name (1st word) in/etc/services
.exec 512/tcp #REXEC Command Server
The same principle applies to SSH. Its common port is 22
,
and the server name is sshd
.