Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better emulation of old scp behavior #299

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

beldmit
Copy link

@beldmit beldmit commented Feb 4, 2022

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

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

beldmit commented Feb 4, 2022

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:
569b650

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant