remote copy file
I would like to use the command rcp to copy file from remote server ( linux ) to local pc , what is the command ?
the remote server name is lnx_srv , the path is /tmp/ora_file1.txt , the linux login id is ora_usr , the .rhosts have released to ora_usr the localhost pc path is c:\Ora I read the help page of windows , tried the command rcp lnx_srv.ora_usr:/tmp/ora_file1.txt c:\Ora , but not work , the error is "rsh: can't establish connection" , Can advise what is wrong ? what comamnd should i use ? Thanks. |
This is the syntax I found for rcp.
rcp [Host][.User:] [Source] [Host][.User:] [Path\Destination] Might want to change your c:\Ora to [computer name]\Ora |
try scp?
rcp is a pretty dated protocol; I would recommend scp, which leverages the SSH daemon that should be running on the system. It sounds like rsh is not running. With a Windows host, you will need PuTTY or Cygwin or some other program to give you SSH capabilities.
change to the directory you want to have the file placed in (Cygwin example) cd /cygdrive/c/Ora scp ora_user@lnx_srv:/tmp/ora_file1.txt . Note the period at the end denoting 'current directory'. Good luck! Quote:
|
Quote:
|
Quote:
|
I also tried the below command , but still not work , can advise what is wrong ?
rcp 192.168.102.1.ora.usr:/tmp/ora_file1.txt c:\Ora Thanks. |
If you are able to download applications to that particular PC there are many scp clients both GUI and command line. Here is one of each.
http://www.chiark.greenend.org.uk/~s.../download.html http://winscp.net/eng/download.php Typically rshd runs from xinetd. The service has to enabled as well as xinetd started. A can't establish connection error could be due to several problems. Is the service running? Does the firewall if enabled allow rsh traffic? Are the hosts.allow, hosts.deny files configured correctly. |
Taking wahsape's word for the syntax
Code:
'.' at the end there means put the file 'here' ie current dir. Looking at your orig error I'd surmise that the rsh/rcp daemon is not running on the lx system, which would be normal. It's a plaintext protocol and as such highly insecure. If you've got putty on the XP system you can use pscp (Putty implementation of scp; recommended). If you insist on using rcp, you'll have to install the daemon with your pkg mgr. Please specify your linux distro and/or add it to your profile so we can help you. iirc, rcp/rsh usually runs under the xinetd super-daemon. |
Thanks reply ,
I want to try rcp first , for my case , I can rcp between linux servers , but can use in between XP and linux , can advise what is wrong ? thx |
As per post #7 - download and install WinSCP - its free and secure. It will achieve what you want in terms of copying data between Win XP and Linux; as well as between Linux servers; via the Win XP machine.
Also you won't need to worry about syntax and so forth as its completely GUI based. |
All times are GMT -5. The time now is 10:28 PM. |