openssh-portable icon indicating copy to clipboard operation
openssh-portable copied to clipboard

Better emulation of old scp behavior

Open beldmit opened this issue 3 years ago • 1 comments

When we use scp in SFTP mode, we try to create a non-existent directory to better emulate the old SCP behavior

beldmit avatar Feb 04 '22 12:02 beldmit

Red Hat Enterprise Linux 8 series is based on OpenSSH 8.0, which is rather old.

Soon after the OpenSSH 8.0 was published, the upstream introduced a server-side fix for sftp, which changes the use of POSIX realpath (on LInux) to the OpenBSD one with various quirks: https://github.com/openssh/openssh-portable/commit/569b650f93b561c09c655f83f128e1dfffe74101

If the OpenBSD realpath is in use on the server, the current master successfully copies directories using scp in SFTP mode. Otherwise problems occur.

As RHEL 8 series will definitely be in wide use for several more years, I kindly ask the OpenSSH upstream to consider this patch, which is trying to workaround the server side on the client side.

beldmit avatar Feb 04 '22 16:02 beldmit