Operating System - HP-UX
1832889 Members
2879 Online
110048 Solutions
New Discussion

not able to do rcp .rhosts and /etc/hosts.equiv are properly configured

 
sivakumar_9
New Member

not able to do rcp .rhosts and /etc/hosts.equiv are properly configured

hi all,

i had got 3 hpux servers
server a
server b
server c



back up of user "user1" in server b (server b:/home/user1/file1 ) and "user1" in server c (server c:/home/user1/file2) are supposed to be copied in "user2" home directory of server a (server a:/home/user2).

In "server a"

/etc/hosts.equiv has entry like

+
server b user1
server c user1

(#actually there is no space in between server a ,b and c just for writing convenience i wrote here)

also in server a:/home/user2/.rhosts

+
server b user1
server c user1

i am able to do rcp from server b. like this it works

server b:> rcp file1 user2@server a:/home/user2

but the same is not working from server c

both the server b and c is logged in with the same user name user1.

it gives the error remshd:login incorrect.

but if i put + + in /etc/hosts.equiv of server a, it works.

but it doesn't work directly.. any help please..

4 REPLIES 4
Sridhar Bhaskarla
Honored Contributor

Re: not able to do rcp .rhosts and /etc/hosts.equiv are properly configured

Hi Sivakumar,

It depends on how 'hosta' sees your 'hostc'. With simply + it expects that connection from 'anyhost' with 'user2' will be honored without a password. With ++, 'anyhost' with 'anyuser' will be accepted without a password. Hence it worked.

You have specified 'serverc user1'. Make sure serverc is seen as 'serverc' on servera. To verify it enable inetd logging and observe the connections on serverA.

#inetd -l
#tail -f /var/adm/syslog/syslog.log

From serverc to a simple telnet (telnet servera) and see how it appears in syslog.log. Most likely you may have to modify your /etc/hosts on serverA to include correct hostname of serverc.

It is much easier and safer to use public/private authentication with ssh.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Andy Townsley
New Member

Re: not able to do rcp .rhosts and /etc/hosts.equiv are properly configured

To add to what Sri said:

1) telnet to as user1 from serverc to servera
2) run a "who -R" and insure the address that who returns is what is listed in your hosts.equiv.

Good luck....
bhavin asokan
Honored Contributor

Re: not able to do rcp .rhosts and /etc/hosts.equiv are properly configured

hi,

can you post the /etc/hosts file.

see the following link

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


regds,
joinsiva
Advisor

Re: not able to do rcp .rhosts and /etc/hosts.equiv are properly configured

Thanks to all,

the problem is sorted out. becoz of login problems i could not reply.

problem was becoz of the hostname resolution. which was found by telnet to the main server and got the hostname from syslog.

and put the same in host.equiv it started working.

regards,
sivakumar