1833187 Members
2965 Online
110051 Solutions
New Discussion

scp error

 
SOLVED
Go to solution
himacs
Super Advisor

scp error

I am transferring around 50 mb file thro scp.It copies for a while and throws below error

ead from remote host 10.11.7.139: Connection reset by peer
lost connection

from syslog i found below line


Disconnecting: Bad packet length 4023852822

using oracle account m tranferring

i tried with other user and from root with different file,it works

what are the possibilities

plz help me on this

regards
himacs
8 REPLIES 8
himacs
Super Advisor

Re: scp error

Hi,

i have transefferd using ftp.

But please tell me what is the max file size which can be transeferred using scp.

i have googled..but didnot get proper answer..

regards
himacs
Patrick Wallek
Honored Contributor

Re: scp error

>>But please tell me what is the max file size
>>which can be transeferred using scp.

None that I know of. I have copied a 25 GB file via scp without any problems. There should be no issues with 50 MB.
James R. Ferguson
Acclaimed Contributor
Solution

Re: scp error

Hi :

> i have transefferd using ftp. But please tell me what is the max file size which can be transeferred using scp.

File size isn't an issue for the transport layer. The destination system might limit the largest file it can store (i.e < 2GB if largefiles isn't set) but this clearly isn't the case here. Your 'ulimit' might also constrain the maximum file size at your destination, but that doesn't seem to be happening here, either.

Google turns up an number of threads to suggest that mixing SSH-1 and SSH-2 protocols may lead to the message you saw.

Regards!

...JRF...

himacs
Super Advisor

Re: scp error

Hi JRF,Patrik,

Thanx for the reply..

i missed to tell u that both the system running different versions.

HP-UX Secure Shell-A.05.10.046 and
HP-UX Secure Shell-A.04.30.007

But small size files(500K) transferred without problem.

regards
himacs
himacs
Super Advisor

Re: scp error

Hi

Plz provide me the link to download below depot.

HP-UX Secure Shell-A.04.30.007

The same is not available in hp site as this is old version

Quick response is highly appreciated

regards
himacs
James R. Ferguson
Acclaimed Contributor

Re: scp error

Hi (again):

Why would you want an old version of Secure Shell?

The HP software depot notes that "...HP provides software technical support for HP-UX Secure Shell for only the latest, currently shipping version and the immediately prior version of the product."

If you can upgrade to the current version (because you are running 11.11, 11.23 or 11.31) then I would consider doing that. However, this may _not_ be the source of your problem, since you said, "i tried with other user and from root with different file, it works".

Regards!

...JRF...
himacs
Super Advisor

Re: scp error

Hi Admins,

Now i transfered the same file using scp...

I dont understand whats happening..

i suspect some network fluctuations..But n/w guys telling there was no issue with network..


One more doubt..
I was getting below error in syslog while scp issue
< bad="" packet="" length="" 1896786796.="">
I was trying with scp..but it shows sftp in syslog.

This is second time m facing problem with scp.But both the time issue resolved itself..strange..

regards
himacs



James R. Ferguson
Acclaimed Contributor

Re: scp error

Hi:

> I was trying with scp..but it shows sftp in syslog.

So what? I suspect that this is intentional to make tracking easier.

A good overview of the differences between 'scp' and 'sftp' is here:

http://en.wikipedia.org/wiki/SSH_file_transfer_protocol

Regards!

...JRF...