1834804 Members
2837 Online
110070 Solutions
New Discussion

rcp problem

 
SOLVED
Go to solution
Frederic Sevestre
Honored Contributor

rcp problem

Hi,
When I am trying to copy a file from a server A to the server B using rcp, there is the following error :
remshd: Couldn't look up address for your host
I tried it using the hostname or the IP address with the same result.
ftp works fine, ping from a server to a other works fine, rcp from B to A is ok.
Any idea ?
Crime doesn't pay...does that mean that my job is a crime ?
9 REPLIES 9
Alexander M. Ermes
Honored Contributor

Re: rcp problem

Hi there.
Checks of these done ?

resolv.conf
nsswitch.conf
remote system access in SAM

Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Joseph Chakkery
Valued Contributor

Re: rcp problem

Hello,

Put ur hostname in .rhosts file then try rcp.

Regards
Joe.
Knowledge is wealth
Joseph Chakkery
Valued Contributor

Re: rcp problem

Hello,

If u r trying to rcp as root. then

$cd /
$ vi .rhosts and add ur hostname of other server here. Do the same thing on other server

Now try rcp

Hope this will help u

Regards
Joe.
Knowledge is wealth
Roger Baptiste
Honored Contributor

Re: rcp problem

<>

If you are doing rcp as user xyz: add
an entry on serverB's xyz homedirectory .rhosts file
serverB:$xyz/.rhosts -> add the entry serverA xyz .

IF the .rhosts file is not there, create
it with this entry.


-raj
Take it easy.
Ravi_8
Honored Contributor

Re: rcp problem

Hi,
add the hostname/ip of host B in /etc/.rhosts of host A.
never give up
James R. Ferguson
Acclaimed Contributor

Re: rcp problem

Hi:

Have a look at the man (4) pages for ' hosts.equiv'. You will find access rights are provided or denied for 'rcp' 'remsh' or 'rlogin' by this mechanism.

Regards!

...JRF...
Uday_S_Ankolekar
Honored Contributor

Re: rcp problem

Hi,

.rhosts or hosts.equiv are the two files you should configure for rcp,remsh etc.
Try using IP address if host name doesn't work

Goodluck,
-USA..
Good Luck..
Sanjay_6
Honored Contributor
Solution

Re: rcp problem

hi Fred,

Try hostname and ip resolution from both the servers. You may have a bogus entry somewhere, either in /etc/hosts or in your DNS. Do a "nslookup" from each of the servers and try the hostname and ip resolution for that server and the other server to which you are doing rcp.

Hope this helps.

Regds
Frederic Sevestre
Honored Contributor

Re: rcp problem

hi,
Thanks for all guys.
It was a problem with the DNS server (an alias not set).
Crime doesn't pay...does that mean that my job is a crime ?