Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-31-2012, 05:41 PM   #1
LQ Newbie
Registered: Oct 2012
Posts: 28

Rep: Reputation: Disabled
Problem with rcp

I tried to copy a file from host A (Mac OS X) to host B (Lubuntu 12.10), but it didn't work and I received a "connection refused" message.
Anyway, i can ping host A from host B and vice versa and on host B isn't a firewall. I also allowed all hosts in the .rhosts file.
Any ideas what could be wrong here?
Old 10-31-2012, 06:10 PM   #2
LQ Newbie
Registered: Nov 2010
Posts: 27

Rep: Reputation: 1
Can you provide the execution that you typed in the terminal? (alter the user names and other information)
1 members found this post helpful.
Old 10-31-2012, 06:30 PM   #3
LQ Newbie
Registered: Oct 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled

if rcp "$file"; then
   echo "Success"
   echo "Error" 1>&2
   exit 1
The file exists and the remote server is reachable. However, the host name of the destination host can't be resolved, e.g. "ping" works, but not "ping ubuntu_host". Seems to be a DNS problem.

On the ubuntu_host, I can ping and also the router without problems.

Here are my IPv4 network setting on "ubuntu_host":
- address:
- subnet:
- gateway:
- DNS server:

Also the resolv.conf has the correct entry: nameserver

The -L option from iptables says this:
Chain INPUT (policy ACCEPT)
target propt opt source destination

Chain FORWARD (policy ACCEPT)
target propt opt source destination

Chain OUTPUT (policy ACCEPT)
target propt opt source destination

Last edited by a2326; 11-01-2012 at 08:55 AM. Reason: Additional info
Old 11-01-2012, 04:02 PM   #4
Senior Member
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 13.1
Posts: 1,323

Rep: Reputation: 252Reputation: 252Reputation: 252
a) if you have no DNS server running on your own or registered a domain you have to specify either the TCP/IP address or the name you specifies in /etc/hosts on the source machine, i.e. the Mac.

b) Is rcpd running on the Lubuntu machine, i.e. the server application on the receiving side? As these protocols are deprecated, you can use scp to transfer the files. To test this: can you transfer files on the Lubuntu machine on its own i.e.
$ rcp file localhost:
But better would be to use:
$ scp file localhost:
1 members found this post helpful.
Old 11-01-2012, 06:06 PM   #5
LQ Newbie
Registered: Oct 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
I know that rcp is a bad choice, but it's a prerequisite. rcp doesn't work locally and I can't find a running rcpd service in the process tree.
Does it make sense to use rcp in conjunction with xinetd?


networking, rcp

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
trying normal rcp (/usr/bin/rcp) Permission denied. Martin Peter Clarke Linux - Server 5 12-21-2010 10:42 AM
Problem when using rcp in sles10sp1 cn_chopsticks Linux - General 0 08-17-2009 10:42 AM
rcp problem ust Linux - Newbie 0 03-26-2009 09:17 PM
Problem in SecureFileCopy (SCP) and RCP oracle_on_linux Linux - General 2 06-04-2008 07:46 PM
problem with rcp and rsh ! iamthewind Linux - Software 1 11-21-2003 03:03 AM

All times are GMT -5. The time now is 08:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration