Operating System - HP-UX
1829608 Members
1395 Online
109992 Solutions
New Discussion

Re: remote file copy problems

 
Donald Thaler
Super Advisor

remote file copy problems

trying to copy file from one unix server to another using rcp command (rcp -rp/var/sam/lp/* root@phoenix:/var/sam/lp/./). I get: cp: /var/sam/lp/cinterface and ./cinterface are identical for each of the files/directories to be copied and the i get the error message "remshd login incorrect". I've checked the rcp executable to make sure the permissions are correct (-r-sr-xr-x) and i went into the inetd.conf file and uncommented the following two statements (shell stream tcp nowait root /usr/lbin/remshd remshd) and (kshell stream tcp nowait root /usr/lbin/remshd remshd -K). Where else can i look to see whats causing the 'remshd login incorrect' error.
8 REPLIES 8
Stuart Abramson
Trusted Contributor

Re: remote file copy problems

I would have used a statement like this:

rcp -rp /var/sam/lp/* phoenix/var/sam/lp

Do you have an .rhosts file on the target?

I wouldn't mess around with inetd.conf file...
Stephen Keane
Honored Contributor

Re: remote file copy problems

1. Check you are not actually logged into phoenix

2. Try

# remsh pheonix ls "/var/sam/lp/*"

Donald Thaler
Super Advisor

Re: remote file copy problems

when i try either of the two suggestions i get 'remshd login incorrect'?
Robert-Jan Goossens
Honored Contributor

Re: remote file copy problems

rcp from A to B

# cat $HOME/.rhosts on B
A root

is A in the .rhosts file of B ?


Donald Thaler
Super Advisor

Re: remote file copy problems

if i'm doing this rcp as 'root' where should the .rhosts file go. According to an hp ux sysadmin manual "there should be no .rhosts file in the root directory"?
James R. Ferguson
Acclaimed Contributor

Re: remote file copy problems

Hi Donald:

See the manpages for 'rhosts' ("man rhosts"). You can place one for root in "/'. The key is to have it owned by root and to keep in readable *only* by its owner.

Regards!

...JRF...
Raj D.
Honored Contributor

Re: remote file copy problems

Hi Donald,

Check /.rhosts file exits with each server name , and try again..

Good luck,

Raj
" If u think u can , If u think u cannot , - You are always Right . "
Donald Thaler
Super Advisor

Re: remote file copy problems

when i created the .rhosts file on both servers the rcp worked.