Re: effect scp -O (use legacy SCP procotol) per host in .ssh/config?

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



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

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux