Online Expert Day - HPE Data Storage - Live Now
April 24/25 - Online Expert Day - HPE Data Storage - Live Now
Read more
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

copying files from linux to hpux

gany59
Regular Advisor

copying files from linux to hpux

Hi techiees ..

I need to copy the PHCO_18925.tar file from the linux box to the hpux box , so i use the command rcp user@host: .. its not working.. it showing error.
I checked in the linux box scp is there..
so could u pls tell me what command do i need to give ...

Thanks in advance...
5 REPLIES
Jeff_Traigle
Honored Contributor

Re: copying files from linux to hpux

Without seeing what the error is, we can only guess. Mine would be that the r-services are disabled on the HP-UX server. These are not secure protocols and most shops disable them. Use sftp or scp instead.
--
Jeff Traigle
Patrick Wallek
Honored Contributor

Re: copying files from linux to hpux

>>so i use the command rcp user@host:
>> .. its not working..
>>it showing error.

What error is it showing?

>>I checked in the linux box scp is there..

OK. So what do you want to use? Do you want rcp or scp?

The syntax for scp is:

scp destination:/dir/filename

'man scp' will tell give you lots of information.

Be aware that SCP will only work if SSH is running on the HP-UX server.
gany59
Regular Advisor

Re: copying files from linux to hpux

Hi
the error is not able to login..
OldSchool
Honored Contributor

Re: copying files from linux to hpux

note that "scp" is *not* "rcp"

possible solutions,

1) enable "rcp" on linux, if available (not recommended)
2) "scp" from hpux to linux box
3) ftp the file...although you may need to use "sftp", as with #1, they aren't the same
4) export the filesystem on Linux, mount on HPUX and copy the file, then unmount

there are probably others, some of which may be easier.
Steven Schweda
Honored Contributor

Re: copying files from linux to hpux

On the HP-UX system, ...

man rcp
http://docs.hp.com/en/B2355-60127/rcp.1.html

"rcp does not prompt for passwords. [...]"

man remsh
http://docs.hp.com/en/B2355-60127/remsh.1.html

man hosts.equiv
http://docs.hp.com/en/B2355-60127/hosts.equiv.4.html


> it showing error.

But you were _hiding_ it, suggesting that you
weren't really serious about getting a useful
answer. As usual, showing actual commands
and their actual output can be more useful
than vague descriptions.