Operating System - HP-UX
1834146 Members
2133 Online
110064 Solutions
New Discussion

rcp files from PC to UNIX server

 
ajk_5
Frequent Advisor

rcp files from PC to UNIX server

Dear all,

Is it possible to use rcp command to copy files from PC to UNIX server? Thanks!



Best Regards
Ajk
9 REPLIES 9
T G Manikandan
Honored Contributor

Re: rcp files from PC to UNIX server

Yes,the same procedures,

On the HPUX side either in $HOME/.rhosts

give the entry of the machine-name and username

eg.

machinenanme username

The problem is that the NT machine mostly use dhcp so you can dive

+
OR
+ +

then do a rcp from NT using

rcp hpuxhostname:
ajk_5
Frequent Advisor

Re: rcp files from PC to UNIX server

I add the following line in the .rhosts file at the Unix server:

+ isdajk

isdajk is a PC user id, not an Unix user id.



At the PC side, I type in Dos prompt:

C:\>rcp c:\test\????_info.txt d270:\home\isdlun

rsh: can't establish connection

d270 is the unix server's host name.
I feel frustrated of the question, please help. Thanks very much.



Best Regards
Ajk
V. Nyga
Honored Contributor

Re: rcp files from PC to UNIX server

Hi Ajk,

if isdajk isn't a unix known user it wouldn't work.
If you only want to use it once I would do it with:
'+ +' in .rhosts

But I would delete it in .rhosts again as soon as possible.

Regards
Volkmar
*** Say 'Thanks' with Kudos ***
G. Vrijhoeven
Honored Contributor

Re: rcp files from PC to UNIX server

Hi Ajk,

First the user must be know to both windows and unix. if not you need a + for the users. ( secutiry risk)
Second the unix server must be able to resolv the PC hostname.
And the pc must be able to resolv the unix host. so ping d270 in your case must work. If not specify the FQDN or ip-adress of the unix server.

HTH,

Gideon
T G Manikandan
Honored Contributor

Re: rcp files from PC to UNIX server

Try using
+ +
in .rhosts file

That should work.
Vitaly Karasik_1
Honored Contributor

Re: rcp files from PC to UNIX server

I suiggest to switch to ssh/scp - secure replacements for r-commands.

Rgds,
vitaly
ajk_5
Frequent Advisor

Re: rcp files from PC to UNIX server

+ + in .rhosts file is still not working.

what is ssh/scp about??
Vitaly Karasik_1
Honored Contributor

Re: rcp files from PC to UNIX server

ssh is Secure shell

http://www.onlamp.com/lpt/a/2903

http://www.ists.dartmouth.edu/IRIA/knowledge_base/linuxinfo/ssh-intro.htm

[even if you use hpux and not unix, ssh suite is the same ssh, you jush should to check how you install it in HPUX]

regarding rcp/.rhosts problem - does it work from the same computer? try to run

remsh localhost date

V. Nyga
Honored Contributor

Re: rcp files from PC to UNIX server

Hi,

you have tested ping from/to the server?
Have you checked in /etc/inetd.conf if remshd is enabled?

Volkmar
*** Say 'Thanks' with Kudos ***