1834108 Members
2709 Online
110063 Solutions
New Discussion

SCP Failure

 
Venugopal Palaniswamy
Honored Contributor

SCP Failure

Folks,

I am trying secure copy of file between two machines. But the file is never getting copied to the destination box, also no error is been thrown during the copy.

SSH between the boxes are working fine - I am able to execute command successful or SSH session to the destination host. The machines I am trying are HPUX 11i and holds T1471AA Secure shell installed.

Any clues?

TIA.
6 REPLIES 6
Venugopal Palaniswamy
Honored Contributor

Re: SCP Failure


Reshma,
Thanks for your time!

I've already done quite some of search for this blank issues and came across above reference threads, no luck!

Cheers, Amar.
Venugopal Palaniswamy
Honored Contributor

Re: SCP Failure


To add, I even tried with remsh & rcp - after configuring .rhosts for the server the remsh is working good.

But rcp is also in the same situation, where it failed to copy and no error being thrown!!!

Any idea?

Thanks!
Matti_Kurkela
Honored Contributor

Re: SCP Failure

Is there any customizations in the destination machine's /etc/profile or the destination user's .profile (or equivalent)?

If there are any commands that are requesting input or outputting a lot of text, this might confuse scp and rcp.

These customizations should be prefixed with something like:
if tty -s
then
# add customizations here
fi

This will cause the customizations to be skipped if the session is not a real login, but a scp/rcp copy job.
MK
Ralph Grothe
Honored Contributor

Re: SCP Failure

Maybe not the most elegant way of copying,
but does something like this work?

$ ssh rlogin@rhost cat \>/tmp/some_name < /some/local_file

Madness, thy name is system administration
Venugopal Palaniswamy
Honored Contributor

Re: SCP Failure


The issue is to do with the tty / shell mode between the users I am trying for copy.

In my case, the source system user had k-shell and other end destination system user was c-shell. Change from c-shell to bourne or k-shell started this data copy working...

Dont know the reason behind this, but with c-shell on target system for remote / secure copy are not working is the bottom line!

Cheers, Amar.