Operating System - HP-UX
1823148 Members
3609 Online
109647 Solutions
New Discussion юеВ

remote copy (rcp) login failed

 
SOLVED
Go to solution
chad_c
Super Advisor

remote copy (rcp) login failed

hi. can anyone shed some light on why this remote copy (rcp) login is failing and where we can look for a solution?

irnnmpdc:/ > rcp -rp /var/opt/OV/tmp/ovbackup bhovo:/arc/ireland_pdc/
remshd: Login incorrect.

Regards,
Chad
13 REPLIES 13
hpuxrox
Respected Contributor

Re: remote copy (rcp) login failed

Is the remote host a trusted host? Does the account that your using exist on the remote machine?

man rhosts
A. Clay Stephenson
Acclaimed Contributor

Re: remote copy (rcp) login failed

Almost certainly you need a valid .rhosts file. A "man remshd" will explain how the "r" commands authenicate users.
If it ain't broke, I can fix that.
Court Campbell
Honored Contributor

Re: remote copy (rcp) login failed

My biased opinion is to forget you ever heard of r-commands and use scp.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
chad_c
Super Advisor

Re: remote copy (rcp) login failed

after updated the .rhosts file i am still getting a login incorrect message

irnnmpdc:/ > rcp -rp /var/opt/OV/tmp/ovbackup bhovo:/arc/ireland_pdc/
remshd: Login incorrect.

i have root access to both systems however, the passwords are different....can anyone shed some light on how to successfully rcp from one system to the other?

Regards,
chad
Aussan
Respected Contributor

Re: remote copy (rcp) login failed

Hi Chad,
this might sound stupid , but is the .rhosts on system a and b ?

it has to be on the 2 systems for rcp to work

if you did, could you display a sample of your .rhosts file
The tongue weighs practically nothing, but so few people can hold it
A. Clay Stephenson
Acclaimed Contributor

Re: remote copy (rcp) login failed

The 'r' commands are very sensitive to hostnames so you may need fully qualified hostnames in the .rhosts file. Again, man remshd, it describes in detail every step of the login process. You should also check the remshd entry in /etc/inetd.conf to see if any options such as -l are in effect.
If it ain't broke, I can fix that.
chad_c
Super Advisor

Re: remote copy (rcp) login failed

here are the .rhosts

irnnmpdc:/ > more .rhosts
irnnmbdc root
irnnmcat root
bhovo root
irnnmpdc:/ >

bhovo# more .rhosts
bhovo
bhnnm1
irnnmpdc
irnnmbdc
bhovo#
chad_c
Super Advisor

Re: remote copy (rcp) login failed

just to note....if i rlogin from irnnmpdc to bhovo....i am required to enter a password.....however, if i rlogin from bhovo to irnnmpdc.....it logs right in without having to enter the password....


can anyone shed some light on this?

Regards,
Chad
Aussan
Respected Contributor

Re: remote copy (rcp) login failed

on bhovo put the user id also

bhovo# more .rhosts
bhovo root
bhnnm1 root
irnnmpdc root
irnnmbdc root

bhovo#
The tongue weighs practically nothing, but so few people can hold it
chad_c
Super Advisor

Re: remote copy (rcp) login failed

tried that and it still fails to login

irnnmpdc:/ > rcp -rp /var/opt/OV/tmp/ovbackup bhovo:/arc/ireland_pdc/
remshd: Login incorrect.
irnnmpdc:/ > exit
logout root
Connection closed.
bhovo# more .rhosts
bhovo root
bhnnm1 root
irnnmpdc root
irnnmbdc root
bhovo#
Aussan
Respected Contributor
Solution

Re: remote copy (rcp) login failed

can you remsh from one server to the other ?

and can you ping the other server by name only

example from irnnmpdc can you do ping bhovo
The tongue weighs practically nothing, but so few people can hold it
A. Clay Stephenson
Acclaimed Contributor

Re: remote copy (rcp) login failed

Note that .rhosts must be in the home directory of user. For example, is / the home directory of root on both boxes? The file must also be owned by user and have permissions 600. Man rhosts for details and more login process description.
If it ain't broke, I can fix that.
chad_c
Super Advisor

Re: remote copy (rcp) login failed

.