Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

problem with scp (packet corrupt)

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
gvtux
Posts: 1
Joined: 2017-02-23 11:24

problem with scp (packet corrupt)

#1 Post by gvtux »

Hi all!

I have a debian jessie 8.2 (fully updated) vps hosting a website (ipboard). My configuration is nginx/mariadb/php-fpm/postfix.

I need to take daily backups and transfer them with scp to another server I own. My problem is with scp. The command I give is:

Code: Select all

scp -P 20400 file.tar user@domain.com:/home/user
It starts but after some seconds I get the following error:
Received disconnect from XXX.XXX.XXX.XXX: 2: Packet corrupt
lost connection
where XXX.XXX.XXX.XXX is the target ip address.


At first I thought it was a network error, but after some tests on another vps from the same company with the my debian snapshot (before loading my snapshot scp was 100% ok and now it's not) that I currently use, I am convinced that it's a software issue, maybe a bug or a fault from my side.

I have run scp with -vvv but I don't get any useful info from the logs.

Just to let you know that file.tar is a file of over 3GB of size.

Do you have any idea on what I should try in order to fix it?

Many thanks,

gvtux.

Ps. I also tried with rsync over ssh with the same results.

peter_irich
Posts: 1405
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: problem with scp (packet corrupt)

#2 Post by peter_irich »

1st, you must point the file but not the directory like destination,
2nd, I never was forced to use "-P port" option. Try

Code: Select all

scp file.tar user@domain.com:file.tar
"/home/user" is not necessary.

Peter.

Post Reply