1751894 Members
5178 Online
108783 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