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
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
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
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?