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

Maybe try following syntax:

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.

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

He already used remsh/rsh to test it.

Are you logged in as "root" when you issue the "rcp" ?
Were you logged in as "root" when you issued the "remsh" ?

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"

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

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;

Is that a file I need to add permission in? And that shoul exist on the remote system?

for passwd less scp check the following link

ssh-keygen: password-less SSH login