Operating System - HP-UX
1833777 Members
2322 Online
110063 Solutions
New Discussion

remshd: Login incorrect (no root user)

 
SOLVED
Go to solution
Anh.Quan
Frequent Advisor

remshd: Login incorrect (no root user)

Dear Experts,

I have 2 server (SVR01, SVR02).
I created a user (user1) in SVR02 and use rcp.
Command like this:

#rcp hello SVR02:/folder1

I showed that "remshd: Login incorrect"
If i use "root" user for rcp. It 's ok.
Please help me to find the reason and fix it.

Many thanks.
QVU.
6 REPLIES 6
Warren_9
Honored Contributor

Re: remshd: Login incorrect (no root user)

hi,

if you didn't specify the username in the rcp command, you need to have "user1" on both server.

GOOD LUCK!!

Anh.Quan
Frequent Advisor

Re: remshd: Login incorrect (no root user)

Dear Warren,

I created 2 user (1 for SVR01, 1 for SVR02). The same password for 2 user. But i can not still use rcp"

Regards,
RAC_1
Honored Contributor

Re: remshd: Login incorrect (no root user)

This is how troubleshoot rlogin/rcp/remsh problems.

From SVR01, telnet to SVR02. (Just plain telnet with user1 id and it's pass). Once logged on , do who -um.
Note down ip_address/hostname you see in last column of above command. You need to have exactly the same ip_address/hostname and user name in .rhosts file on SVR02 server in HOME dir of user1. .rhosts would look like follows on SVR02. (in HOME dir of user1 on SVR02)

"ip_address/hostname_from_who-um_command" user1
There is no substitute to HARDWORK
Frank de Vries
Respected Contributor
Solution

Re: remshd: Login incorrect (no root user)

Sounds familiar :)
We had this a couple of times in a script
, sometimes it worked and then it didn't and
then it did.

Our solution was (and we never had the incident again)
1. specify not only server name but also
username explicitly in .rhosts
thus:
serverx user1
2. Ensure .rhosts had correct permissions
(If it is a batch script then the following
is handy as a safety valve)
3. prior to our rcp we do a nslookup as a to
test for network glitzes,
if successfull we continue doing the rcp
, if not we sleep 30 seconds.

3 If rcp cmd fails , we rerun after one
minute.

This formulea was dead solid.
Never any more problems with remsh, rcp
anywhere between our 30 odd servers !!

Allé bon
good luck
Look before you leap
Anh.Quan
Frequent Advisor

Re: remshd: Login incorrect (no root user)

Many thanks to all of you. I found the reason. someone else deleted .rhosts file in SVR01.

Many thanks.
QVU
Anh.Quan
Frequent Advisor

Re: remshd: Login incorrect (no root user)

Thanks for your supports!