1825711 Members
3127 Online
109686 Solutions
New Discussion

scp error

 
SOLVED
Go to solution
himacs
Super Advisor

scp error

Hi admins,

While doing scp to different server m getting below error.

isconnecting: Bad packet length 578839247.
lost connection

Quick response is highly appreciated.

regards,
himacs
12 REPLIES 12
himacs
Super Advisor

Re: scp error

Hi,

Actually i want to transfer 4 GB file to another server.I tried with sftp,scp but ended up with errors.Bot the servers are in different subnet.

Find the below error when i tried with sftp.

ead from remote host 10.11.10.29: Connection reset by peer
Connection closed



Please help on this.
Matti_Kurkela
Honored Contributor

Re: scp error

Assuming that you're using OpenSSH-based SSH software at the client side, the scp command calls "ssh [user@] scp [options] -t ". The ssh connection effectively forms a special kind of a pipe between the local and remote scp processes.

I guess the first word of the error message is missing its first letter: it should be "Disconnecting: ...".

Your error message is coming from the ssh command, which is receiving from the remote server something it cannot understand.

For further troubleshooting, more information is required:

- Does the error happen in the beginning of the connection, or does the copy proceed for a while before terminating?

- Which versions of SSH are used, both on the client and on the server? (If the version is very old, could you try updating to a newer version, to see if the error goes away?)

- Does the same error appear if you try a regular ssh connection instead of scp?

- Is there some sort of customized access control, e.g. a firewall in the network or a software IPfilter on the remote host?

MK
MK
himacs
Super Advisor

Re: scp error

Hi,

I transferred files using FTP.

But can anybody tell whats the file size limit using scp.
how to check scp version.
and why i got above errors

regards
himacs
UVK
Trusted Contributor

Re: scp error

ssh/scp is not compiled with 64 bit file support, so the maximum size of the file you can copy is about 2.4 G
-------------------------------------------
Like it or worked !! Click kudos !!
himacs
Super Advisor

Re: scp error

Hi UVK,

Thanks for ur reply.

Still m in dark about those errors while i tried scp.
The same files(1 GB) i treansfered using ftp.

Can u please tell me how to check scp version.
and why i got those erors

regards
himacs
UVK
Trusted Contributor
Solution

Re: scp error

#ssh -V

this should give you the version of your openSSH and as you know scp is a part of SSH package
-------------------------------------------
Like it or worked !! Click kudos !!
UVK
Trusted Contributor

Re: scp error

About the error, What I do is only speculate as I dont have any concret evidence of why this happens. But I have been through such problems

I was ending up thinking that there might be a time limit or something like that to reset the scp connection.

-------------------------------------------
Like it or worked !! Click kudos !!
UVK
Trusted Contributor

Re: scp error

Hey I dnt ask you about this.

Does the destination filesystem has sufficient space to accomidate the new file when u tried the transfer ??
-------------------------------------------
Like it or worked !! Click kudos !!
himacs
Super Advisor

Re: scp error

Yes

i was trying to transfer 1 gb file .Destination is around 20 GB free.

himacs
Steven Schweda
Honored Contributor

Re: scp error

Am I missing something obvious, or do we know
exactly nothing about any of the software on
any of the systems here -- OS, SSH, SCP, FTP,
...?

> Still m in dark [...]

You're not the only one. None of us
non-psychics have seen any of your actual
commands, either.
Steven Schweda
Honored Contributor

Re: scp error

dy $ scp sol:/usr/test/vms732x4.img .
vms732x4.img 100% 2480MB 5.7MB/s 07:17

dy $ ls -l
total 5078128
-rw-r--r-- 1 sms users 2599993344 Apr 17 17:59 vms732x4.img

dy $ uname -a
HP-UX dy B.11.11 U 9000/785 2012616114 unlimited-user license

dy $ ssh -V
OpenSSH_4.3p2-hpn, OpenSSL 0.9.7i 14 Oct 2005
HP-UX Secure Shell-A.04.30.006, HP-UX Secure Shell version

dy $ ssh sol 'uname -a ; ls -l /usr/test'
SunOS sol 5.10 Generic_137137-09 sun4u sparc sun4u
total 5080608
-rw-r--r-- 1 root root 2599993344 Apr 17 17:17 vms732x4.img

So, I can use SCP to transfer a 2.5gB file
to an HP-UX system with no trouble.

> Quick response is highly appreciated.

A useful problem report would be appreciated
at least as much.
himacs
Super Advisor

Re: scp error

Hi Steven,

Thanks for ur response.But my question is why scp is limited to 2.5GB and i heard that gzip is limited to 2GB.Could we overcome this using latest patches?

M running latest version of SSH.

ssh -V
OpenSSH_5.1p1+sftpfilecontrol-v1.2-hpn13v5, OpenSSL 0.9.8j 07 Jan 2009
HP-UX Secure Shell-A.05.10.046, HP-UX Secure Shell version


But what i posted in my thread is still unanswered.SCP not able to transfer 1GB and eneded up with errors.Atleast i had to use FTP,which is not secure and succeed in transfering.


regards,
himacs