adrianriobo / deliverest

Base container to acting as a delivery container for multi arch and multi platform
0 stars 4 forks source link

SSH file copying from target host truncates the files into 204800 Bytes #37

Closed adrianriobo closed 5 months ago

adrianriobo commented 5 months ago

An issue created podman-desktop-e2e: https://github.com/containers/podman-desktop-e2e/issues/161.

All the files copied from target host into local host system are truncated into 204800B big files.

Upstream issue: https://github.com/PowerShell/Win32-OpenSSH/issues/2098

adrianriobo commented 5 months ago

Unfortunately the -X option is not available yet on current ssh version:

+ scp -r -X buffer=32768 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ServerAliveInterval=30 -o ServerAliveCountMax=1200 -o BatchMode=yes -o ConnectTimeout=3 -i /data/id_rsa rhqp@20.171.158.222:pd-e2e/results /data/
unknown option -- X
usage: scp [-346ABCOpqRrTv] [-c cipher] [-D sftp_server_path] [-F ssh_config]
           [-i identity_file] [-J destination] [-l limit]
           [-o ssh_option] [-P port] [-S program] source ... target

It seems to be introduced on 9.2 https://www.openssh.com/txt/release-9.2