1846576 Members
2130 Online
110256 Solutions
New Discussion

remshd: Login incorrect

 
SOLVED
Go to solution
panchpan
Regular Advisor

remshd: Login incorrect

Hello.
I wish to transfer directories, sub-dirs and files from one machine to another HP-UX machine in same network. I tried to use rcp command. But received an error remshd: Login incorrect

Please suggest.

Is this command okay?
rcp -p localdir remotehost:remote-dir

Thanks
7 REPLIES 7
Oviwan
Honored Contributor
Solution

Re: remshd: Login incorrect

Hy

i'm not sure but you must configure the .rhosts file in the home directory of the user:

remotemachine username

the command is:

rcp username@hostname:file_to_copy destination

Regards
Coolmar
Esteemed Contributor

Re: remshd: Login incorrect

Please see the following thread to help troubleshoot your "login incorrect" error:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=247968&admit=-682735245+1166457238572+28353475

Do you have SSH setup on your system? I generally use "scp" or "tar" to dump files from one system to another. I like tar better, it is slower but it includes links.

panchpan
Regular Advisor

Re: remshd: Login incorrect

Can you please gimme the command of tar and untar. Will tar take care of sub-directories also? after getting tar, shall i ftp the .tar file.

Thanks
Coolmar
Esteemed Contributor

Re: remshd: Login incorrect

On the server that you want to copy FROM:

cd /fromdir
tar cf - * |ssh TOSERVER "cd /todir; tar xf -"

Note: the above command requires ssh to work...you can try rsh as I am sure it would work too but I never tried it that way.
spex
Honored Contributor

Re: remshd: Login incorrect

Hi,

Source:
$ tar cvf /path/to/archive.tar /path/to/backup

Destination:
$ tar xvf /path/to/archive.tar

Note that if you create the archive using absolute paths, when you extract from the archive, those same ABSOLUTE paths will be used. If this isn't what you want, create your archive using RELATIVE paths. Then, on the destination box, 'cd' to the desired top-level directory, and extract.

PCS
panchpan
Regular Advisor

Re: remshd: Login incorrect

Thank you for your help.
But i did tar at source using tar cvf
then i ftped it to remote machine. and then gave command tar xvf and got many errors saying permission denied. and did not get untarred at desitnation.

Thanks
spex
Honored Contributor

Re: remshd: Login incorrect

You need to ensure that you have write permission for the top-level directory.