rcp problem


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting rcp problem
# 1  
Old 03-30-2009
rcp problem

Hi,

When I try to use rcp I donīt recieve the file I try to fetch.
I donīt get any error message, it just execute and as far as I can tell doesnīt do anything.

I have no problem with using remsh to list the directory.

remsh 132.196.133.185 -l root ls
xdpyinfo: unable to open display "".
cha
etc
fha
local.cshrc
local.login
local.profile
remote_export
test.output
export

The command I use is.

rcp root@132.196.133.185:test.output kalle

Is there anyone who might have an idea what the problem might be?

Thanks in advance,

Andreas
# 2  
Old 03-30-2009
Maybe try following syntax:
Code:
rcp root@132.196.133.185:/test.output ./kalle

Also if possible it might be better to set up ssh/scp since it's communication is encrypted/key based.
# 3  
Old 03-30-2009
rcp works as rsh . so make sure u can logon to the dest machine via rsh.
It typically uses the TCP/IP protocol and the .rhosts file for authentication.So you also check the entry in .rhosts file(in the dest server) if you are authorized to that remote machine
# 4  
Old 03-30-2009
He already used remsh/rsh to test it.
# 5  
Old 03-30-2009
Are you logged in as "root" when you issue the "rcp" ?
Were you logged in as "root" when you issued the "remsh" ?
# 6  
Old 03-30-2009
Try without the "root@" and with specifying the directory containing the file "test.output" - even if it is just "/".
BTW. The syntax with the "root@" effectively reverses the transfer such that the target server needs ".netrc" permission to send files to the source server.
There is a further issue. Once you have embarked on the "root@" syntax you needed to have provided the acount name and computer name for the return route. Hence the hang.
see "man rcp"

Code:
rcp 132.196.133.185:/directory/test.output kalle

To preserve the file timestamp try the "-p" switch.

rcp -p 132.196.133.185:/directory/test.output kalle


Last edited by methyl; 03-30-2009 at 08:02 PM.. Reason: Return computer address
# 7  
Old 03-31-2009
Hi,

Yes I was logged on as root.
I still donīt receive the file when I try to fetch it.
Regarding the scp option I need to fetch the file automatically, not being prompted with a password. Or is it possible to use scp automatically?

I am not following;
Quote:
BTW. The syntax with the "root@" effectively reverses the transfer such that the target server needs ".netrc" permission to send files to the source server.
Is that a file I need to add permission in? And that shoul exist on the remote system?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

rcp -r || cp -r

what different between two instruction cp -r rcp -r (1 Reply)
Discussion started by: tamer11007
1 Replies

2. Solaris

problem with RCP

hi everybody , i have a problem with rcp between too hosts : when i do : host 1(root) :# rcp file1 host2:/target2 or : host2 (root):#rcp file2 host1:/target1 i have the following message : permission denied I made the following changes, but the problem still persists : I added the... (0 Replies)
Discussion started by: lid-j-one
0 Replies

3. UNIX for Dummies Questions & Answers

RCP command

hi, When i use RCP command to copy filr from a different servers, it is showing as connection refused??? ca anyone help me out??? thanks, Arun Manas:b: (2 Replies)
Discussion started by: arunmanas
2 Replies

4. Shell Programming and Scripting

rcp the file

Hi I am using rcp command to copy the file one linux to other linux machine I need the ouput log for this like 1 file coied size of the file date stamp my copy comman is rcp 10.100.11.2:/u01/pr/uni.txt /u05/ryd/uni.txt once this script run i need to capture the... (3 Replies)
Discussion started by: aboorkuma
3 Replies

5. UNIX for Advanced & Expert Users

Regd: rcp

Hi, The B machine is using rcp method to copy a file to A machine. But it is not getting copied. Its giving the error as: remshd: Login incorrect. On A machine rhosts file has details about the B machine. Could anyone tell what could be done to make this work? Any help is appreciated.... (1 Reply)
Discussion started by: nehak
1 Replies

6. HP-UX

rcp command

Hi, Good day to you all. I am trying to use rcp command to transfer some files on the remote machine. I have already setup .rhosts on my server and on the remote machine. When I do rcp I get this error message rcmd_af: Lost connection Is anybody familiar with this one? Thanks in advance. ... (3 Replies)
Discussion started by: sodapop
3 Replies

7. Solaris

rcp not working

I applied patch 108993-65 on two servers (5.8) and now I am unable to rcp to either machine. Getting "permission denied". (3 Replies)
Discussion started by: shorty
3 Replies

8. UNIX for Dummies Questions & Answers

Rcp

I am trying to set up RCP so root can access a few machines for file transfer. On the target machine, I have set up a .RHOSTS file that looks like: 10.33.1.59 root However when I try to use RCP to copy a file to this machine, I get permission denied. Is it possible since another user is... (1 Reply)
Discussion started by: hshapiro
1 Replies

9. HP-UX

rcp logs

Hi, Can anyone help me to trace who has made rcp to a HP-UX machine? Is there a file that keeps such records? I know ftp's are recorded in /var/adm/syslog but i only need rcp.Thanks... (0 Replies)
Discussion started by: ilkergu
0 Replies

10. Cybersecurity

About rcp at Windows NT OS.

Now I want to copy a directry from Sco Unix at Windows NT 4.0 with Sp6. But I always meet the Permision Refuse error. I need your help. GOD Thank you very much. (1 Reply)
Discussion started by: livic
1 Replies
Login or Register to Ask a Question