1821066 Members
2708 Online
109631 Solutions
New Discussion юеВ

remsh login incorrect

 
SOLVED
Go to solution
John Carver
Frequent Advisor

remsh login incorrect

I am trying to remsh from one hpux machine to another. I get the message: remshd: Login incorrect. Both are running 11.00. As far as I can tell the inetd.conf and .rhosts file on the
target machine are correctly configured. I can rlogin to the target, but I have to supply a password, so it leads me to believe there is still a problem with the .rhosts file. I am also running a trusted system.
4 REPLIES 4
someone_4
Honored Contributor

Re: remsh login incorrect

in your .rhosts file who is allowed to log in ? For example ..

hosta + # means everyone can log in

hostb root # only root can log in

if you are logged in as user1 and trying to do a remsh to hostb .. it wont work because only root can log in.

and check and in /etc/inet.conf
the following should be uncommented:

shell stream tcp nowait root /usr/lbin/remshd remshd

kshell stream tcp nowait root /usr/lbin/remshd remshd -K
klogin stream tcp nowait root /usr/lbin/rlogind rlogind -K

after you uncomment them do
inetd -c
to reread the file and accept the changes
Paul Thomson_2
Super Advisor

Re: remsh login incorrect

Could it be possible that the /etc/files contain incorrect information about the servers you are using. Perhaps an IP address is wrong or the servers are not there ?
Argh ye land lovers !
Bill Hassell
Honored Contributor
Solution

Re: remsh login incorrect

There are 2 parts to the 'r' command picture (r-commands = rlogin, remsh and rcp):

1. The hostname that you store in .rhosts must be resolvable by the machine receiving the request (the target machine). You *must* be able to resolve 2 ways: by hostname and by reverse DNS using the IP address. If either fails, r-commands will fail (ie, ask for passwd)

2. The permissions for .rhosts must be 600 (no read or write by anyone else).

The r-commands are by their very nature, a security risk so they do what they can to verify the connection is OK.


Bill Hassell, sysadmin
Patrick Chim
Trusted Contributor

Re: remsh login incorrect

Hi,

You want to remsh from A machine to B machine. Does B machine has the same username of A that execute the remsh command. If not, you have to specific the '-l' option with remsh command.

Here is my working examples of two of my systems that have two different users execute the remsh command.

ppatc@[machine A]:/home/ppatc >
> remsh B ls
remshd: Login incorrect.
ppatc@[machine A]:/home/ppatc >
> remsh B -l dpatc ls -x
backup.d bin diff2.txt html log sql
test tmp

And the content of ~dpatc/.rhosts in machine B should contain the following line

ppatc

Hope this help !!

Regards,
Patrick