Unix/Linux Go Back    


UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

rcp between two unix machine

UNIX for Advanced & Expert Users


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 06-05-2004
nvg_hal nvg_hal is offline
Registered User
 
Join Date: Jun 2004
Last Activity: 22 May 2009, 1:18 AM EDT
Location: india
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
rcp between two unix machine

rcp user@hostname:sourcefile destfile

when i use the above command i get the followin error:

remshd:login incorrect.

i have taken care of entries in .rhosts and hosts.equiv. the userid
on both the system is the same. is there any thing i have missed out

please help me
Sponsored Links
    #2  
Old Unix and Linux 06-05-2004
zazzybob's Unix or Linux Image
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
 
Join Date: Dec 2003
Last Activity: 13 May 2013, 9:02 AM EDT
Location: Melbourne, Australia
Posts: 2,185
Thanks: 3
Thanked 24 Times in 23 Posts
For a start, the user@hostname: bit should come before destfile, e.g.


Code:
rcp sourcefile user@hostname:destfile

If your source and target machines support scp, use that instead as it's far more secure.

Cheers
ZB
Sponsored Links
    #3  
Old Unix and Linux 06-07-2004
nvg_hal nvg_hal is offline
Registered User
 
Join Date: Jun 2004
Last Activity: 22 May 2009, 1:18 AM EDT
Location: india
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
rcp between two unix machine

Quote:
Originally posted by zazzybob
For a start, the user@hostname: bit should come before destfile, e.g.


Code:
rcp sourcefile user@hostname:destfile

If your source and target machines support scp, use that instead as it's far more secure.

Cheers
ZB
hi zazzybob,

lets assume i have two unix machine A & B. If i want to copy a file from system B, how will the above command work. My source file is residing on system B.

bye
    #4  
Old Unix and Linux 06-07-2004
malcom's Unix or Linux Image
malcom malcom is offline
Registered User
 
Join Date: Jul 2003
Last Activity: 11 March 2008, 11:47 AM EDT
Location: Germany
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

you can also do your syntax, but than you also have to enter the server B on the server A.

you are copying a file initiated by server b to server a which means server a needs also the authentication config for server b.

regards
malcom
Sponsored Links
    #5  
Old Unix and Linux 06-08-2004
nvg_hal nvg_hal is offline
Registered User
 
Join Date: Jun 2004
Last Activity: 22 May 2009, 1:18 AM EDT
Location: india
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
rcp between two unix machines

I have ensured that the Login id on both the system is the same.

I have taken care of entries in .rhosts and /etc/hosts.equiv on both the systems.

I am able to ping, ftp, rlogin between two systems.

YET rcp gives the following error:

remshd:login incorrect.

clue: rlogin is asking for passwd, which should not be the case
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Unix or Linux Image More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Unix on machine parthmittal2007 Shell Programming and Scripting 6 12-28-2011 01:32 PM
How to transfer files from unix machine to local machine using shell script? vidhyaS Shell Programming and Scripting 1 08-08-2011 10:27 AM
What unix machine can this be? fedora UNIX for Dummies Questions & Answers 1 11-12-2009 04:28 PM
ftp from windows to unix using a perl script on unix machine raksha.s Shell Programming and Scripting 3 02-26-2009 11:18 PM
missing Path(in UNIX) when i launch a job on to unix machine using windows SSh megastar UNIX for Advanced & Expert Users 1 11-04-2005 06:36 AM



All times are GMT -4. The time now is 07:18 PM.