I'm trying to copy some certificates onto my server using scp.
$ scp ./cert.* [email protected]:/tmp/
cert.crt 100% 2386 0.1KB/s 00:18
packet_write_wait: Connection to 192.168.0.42 port 22: Broken pipe
lost connection
The first file is written to the server, but not completely as the hashsum does not match with the original file.
This happens every time I try to scp these files (crt, key and p12).
Tested with Ubuntu 16.10 (OpenSSH_7.3p1 Ubuntu-1, OpenSSL 1.0.2g 1 Mar 2016)
and with Windows 10 (WinSCP 5.9.4). Both fail copying the files.
It may be worth mentioning that I'm connected to an OpenVPN server, in order to reach the target server (192.168.0.42) - but that shouldn't be an issue.
Why does the pipe break and how can I successfully scp the files onto the server?
edit: This, as suggested in the comments, most likely has to do with the MTU - however, I'm not quite sure how to fix this issue yet.