Operating System - Linux
1829525 Members
2059 Online
109991 Solutions
New Discussion

cannot rcp from linux to hpux 11.11

 
SOLVED
Go to solution
wvsa
Regular Advisor

cannot rcp from linux to hpux 11.11

Good afternoon all,

I'm working in linux for the first time so with that in mind here is my problem trying to rcp from linux to hpux 11.11 server. When I try to do this get the following error message from from the linux box:

/usr/bin/rcp testrcp jonah:/tmp
remshd: Login incorrect.

On the hpux side of things I have made entries in the .rhosts file and /etc/hosts.equiv files for the linux box on the hpux server. In hpux land the above command usually indicates you do not have a entry the .rhosts file on the server one is attempting to copy files to.

Oh yes here is my version linux:
Linux version 2.4.21-15.ELsmp (bhcompile@bugs.build.redhat.com) (gcc version 3.4

What am i missing here?

Thankyou for your input.

Norm
8 REPLIES 8
Abdul Rahiman
Esteemed Contributor

Re: cannot rcp from linux to hpux 11.11

Couple of things to check for,

1. Check the ownership of the .rhosts file - should be owned by the owner of the home directory or root.

2. Check that the host defined in the .rhosts and hosts.equiv has the correct ip address on the /etc/hosts file.

HTH,
Abdul.
No unix, no fun
Mark Grant
Honored Contributor

Re: cannot rcp from linux to hpux 11.11

Norm,

The problem is on the HPUX box. The error is from "remshd" which is an hpux daemon. However, in addition to the suggestions above, check your UID on both machines is the same or use a user name specification as in "name@host:/tmp".

Also have a look in the syslog on the HPUX box, it may tell you exactly why authentication is failing.
Never preceed any demonstration with anything more predictive than "watch this"
wvsa
Regular Advisor

Re: cannot rcp from linux to hpux 11.11

Gentlemen, thankyou for the suggestions, have made the changes you have recomended and still have the same error message.

Question are you suggesting the rcp command from linux be as follows:

rcp file name@host:/tmp

If so this did not work either. Hopefully something comes to mind.

Steven E. Protter
Exalted Contributor

Re: cannot rcp from linux to hpux 11.11

I would suggest the following radical ideas:

1) Assign points to those who helped you before.
2) Replace rcp with scp from openssh/secure shell. Its standard with any recent linux install and available here for HP-UX...
http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA

openssh/secureshell is secure without exposing your machines to security hazards. Its likely that the problem on the hp-ux box is caused by measures such as /etc/hosts.equiv or /var/adm/inetd.sec that are put in to prevent abuse of the .rhosts files and such.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
John Kittel
Trusted Contributor

Re: cannot rcp from linux to hpux 11.11

I just tried it from my redhat ( version?) box to my hp-ux 11i box. Failed 1st time, same error as you.

$ rcp stuff.txt hpsystem:/home/kittel/
remshd: Login incorrect.

Then I added .rhosts on the hp-ux acct, and now it works.

On hp-ux system,

# cat .rhosts
linuxsystem.mydomain.com kittel

On the linux system,

$ rcp stuff.txt hpsystem:/home/kittel/
$

KapilRaj
Honored Contributor
Solution

Re: cannot rcp from linux to hpux 11.11

Is this a multihomed box ?. It could be that u have added the host name in the .rhosts but it uses a diffrent interface to reach the node.

Regds,

Kaps
Nothing is impossible
wvsa
Regular Advisor

Re: cannot rcp from linux to hpux 11.11

Gentlemen,

Thanks to all of you for your responses. I did post points, all were good answers the last input gave me a clue, knew it was simple, on the hpux server I had the .rhosts in / instead of roots home directory. Moved the .rhosts file and low and behold my rcp now works.

Yes I would like to install secure shell on the hpux server.
KapilRaj
Honored Contributor

Re: cannot rcp from linux to hpux 11.11

Norm,

You read my comments diffrently but after all u solved ur problem.

To tell you the truth, "Multihomed Node" is one node with multiple interfaces (LAN).

Hv fun,

Kaps
Nothing is impossible