Christian Weisgerber
2022-Jun-21 20:17 UTC
effect scp -O (use legacy SCP procotol) per host in .ssh/config?
"Brian J. Murrell":> Is there a .ssh/config option I can set to force scp with that host to > use the legacy protocol?No, because scp doesn't read ~/.ssh/config. scp spawns ssh, which does, but that only affects ssh's operation. -- Christian "naddy" Weisgerber naddy at mips.inka.de
Brian J. Murrell
2022-Jun-22 02:14 UTC
effect scp -O (use legacy SCP procotol) per host in .ssh/config?
On Tue, 2022-06-21 at 22:17 +0200, Christian Weisgerber wrote:> > No, because scp doesn't read ~/.ssh/config.? scp spawns ssh, which > does, but that only affects ssh's operation.Fair enough. Would it be unreasonable for scp to gracefully fallback to the legacy protocol when SFTP fails though? Cheers, b.
Jochen Bern
2022-Jun-22 08:48 UTC
effect scp -O (use legacy SCP procotol) per host in .ssh/config?
On 21.06.22 22:17, Christian Weisgerber wrote:> "Brian J. Murrell": > >> Is there a .ssh/config option I can set to force scp with that host to >> use the legacy protocol? > > No, because scp doesn't read ~/.ssh/config. scp spawns ssh, which > does, but that only affects ssh's operation.For what it's worth: I had a quick look what a wrapper script can do, and found that "ssh -G $TARGETHOST" can tell you whether that host has an ssh_config setting of, for example, "sendenv NO_SFTP" (which will hopefully never *actually* send anything, as IIUC the env var would need to be *set* for that). Now if only we could get the hostname(s) without entirely duplicating scp's command line parsing ....... ? Regards, -- Jochen Bern Systemingenieur Binect GmbH -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3449 bytes Desc: S/MIME Cryptographic Signature URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20220622/10d2645b/attachment-0001.p7s>