LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-31-2012, 06:41 PM   #1
a2326
LQ Newbie
 
Registered: Oct 2012
Posts: 26

Rep: Reputation: Disabled
Problem with rcp


Hello,
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, 07:10 PM   #2
ar2deetu
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, 07:30 PM   #3
a2326
LQ Newbie
 
Registered: Oct 2012
Posts: 26

Original Poster
Rep: Reputation: Disabled
Code:
file="/shell_scripts/local/testdat.txt"

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

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

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

Also the resolv.conf has the correct entry: nameserver 192.168.0.1

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 09:55 AM. Reason: Additional info
 
Old 11-01-2012, 05:02 PM   #4
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 13.1
Posts: 1,320

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.
Code:
$ rcp file localhost:
But better would be to use:
Code:
$ scp file localhost:
 
1 members found this post helpful.
Old 11-01-2012, 07:06 PM   #5
a2326
LQ Newbie
 
Registered: Oct 2012
Posts: 26

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?
 
  


Reply

Tags
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 11:42 AM
Problem when using rcp in sles10sp1 cn_chopsticks Linux - General 0 08-17-2009 11:42 AM
rcp problem ust Linux - Newbie 0 03-26-2009 10:17 PM
Problem in SecureFileCopy (SCP) and RCP oracle_on_linux Linux - General 2 06-04-2008 08:46 PM
problem with rcp and rsh ! iamthewind Linux - Software 1 11-21-2003 04:03 AM


All times are GMT -5. The time now is 06:12 AM.

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