mirror of
https://github.com/ovh/the-bastion.git
synced 2026-05-09 16:35:33 +02:00
[GH-ISSUE #436] SFTP plugin instead of SCP on recent OpenSSH versions #115
Labels
No labels
answered
bug
documentation
enhancement
enhancement
feature
feature
kept-open-for-info
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/the-bastion#115
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @CorentinDeBoisset on GitHub (Dec 8, 2023).
Original GitHub issue: https://github.com/ovh/the-bastion/issues/436
I noticed that on MacOS, the
scpexecutable uses thesftpcommand on the remote host. This is an extract of the man page:The OpenSSH version installed on my MacOS (v14.1.1) is
OpenSSH_9.4p1This is not present on the
scpexecutable on Linux (tested on Ubuntu 20.04, openSSH version :OpenSSH_8.2p1 Ubuntu-4ubuntu0.5). However, Ubuntu 23.04 and 23.10 ship with OpenSSH 9.0 so they should show the same symptoms.That means that with recent versions of OpenSSH such as the one installed by default on MacOS, the plugin to use with
scpissftp. This is quite counter-intuitive, you may want to add a caveat in the documentation.@speed47 commented on GitHub (Jan 19, 2024):
Hello,
This is correct, and is indeed an OpenSSH change, which will gradually take place on all distros as they update their OpenSSH version.
For now, the
scp -Ooption is supported to ask the OpenSSH client to NOT use sftp but still use plain old scp. At some point (in several years I expect), they'll entirely remove scp.This is handled in the code here:
github.com/ovh/the-bastion@a458e4b63c/bin/plugin/open/scp (L187-L192)To get back to your issue, you should have seen the above message if you tried to use scp (a recent version such as the one on your Mac) without the
-Oparameter. Is your bastion version recent enough?@speed47 commented on GitHub (Apr 10, 2024):
Closing for inactivity, please reopen if needed