1833428 Members
2853 Online
110052 Solutions
New Discussion

Re: Problems with remsh

 
SOLVED
Go to solution
dictum9
Super Advisor

Problems with remsh



WhenI try to run remsh, I get the following error message. Why is this happening. I have the right entry in /etc/inetd.conf.


# remsh sbda1
rlogin: login/tcp: Unknown service
11 REPLIES 11
Rajeev  Shukla
Honored Contributor
Solution

Re: Problems with remsh

Its because of /etc/services file.
See that you have proper entries in /etc/services for
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

Check that none are commented.

Cheers
Rajeev
dictum9
Super Advisor

Re: Problems with remsh

Are you talking the local /etc/services or the /etc/services on the machine I am trying to connect to?

Rajeev  Shukla
Honored Contributor

Re: Problems with remsh

Sorry for the confusion.
I am talking about the /etc/services file on the remote machine where you are trying to remsh
dictum9
Super Advisor

Re: Problems with remsh

Thank you. This is most helpful.

Now, the problem is, I cannot remsh as root. Even if I give the right login information. It just keeps asking for the password. I think there is a variable somewhere that I can set to allow root logins via remsh, is that so?
Rajeev  Shukla
Honored Contributor

Re: Problems with remsh

for remsh to work as root without prompting for password you need to put the hostname (source hostname) either in /etc/hosts.equiv file or .rhosts file in the home directory of root user on the destination server.
dictum9
Super Advisor

Re: Problems with remsh

That was the problem. I knew about $HOME/.rhosts but I put in a FQDN. It did not work with the FQDN. When I added the simple hostname, it worked. DNS issue.
dictum9
Super Advisor

Re: Problems with remsh

OK, another issue - remsh works, but rlogin doesn't. What's a valid entry in the /etc/services file?

rlogin: login/tcp: Unknown service
Rajeev  Shukla
Honored Contributor

Re: Problems with remsh

All the ones listed above i.e
exec 512/tcp
login 513/tcp
who 513/udp whod
shell 514/tcp cmd

And if you are using Kerberos authentication then
klogin 543/tcp
eklogin 2105/tcp

Should be enabled on the destination server in /etc/services.
James R. Ferguson
Acclaimed Contributor

Re: Problems with remsh

Hi:

Aside from '/etc/services' make sure that you have a line like this in '/etc/inetd.conf' :

login stream tcp nowait root /usr/lbin/rlogind rlogind

If it is commented-out; un-comment it; and re-read 'inetd' thusly:

# inetd -c

Regards!

...JRF...
Muthukumar_5
Honored Contributor

Re: Problems with remsh

Check all services in /etc/services related with remsh and rlogin.

exec 512/tcp # remote execution, passwd required
login 513/tcp # remote login
shell 514/tcp cmd # remote command, no passwd used

Three must be there on remote machine.

You have to setup .rhosts file in remote server and local server in account names $HOME directory as,

Local machine - root user $HOME directory

cat .rhosts
remotemachine root

Remote machine - root user $HOME directory

cat .rhosts
remshinsitiatingmachine root

Check /etc/inetd.conf file for remsh support as,

login stream tcp nowait root /usr/lbin/rlogind rlogind

If you are going to kerberose then,
klogin stream tcp nowait root /usr/lbin/rlogind rlogind -K

Then reconfigure inetd (aemon) as,

inetd -c

That is it.

-Muthu
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: Problems with remsh

What type of error you are getting with regard to rlogin ? Check with /var/adm/syslog/syslog.log.

You can check the following threads for troubleshooting,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=120080
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=922831

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"