[Bug 3437] New: implement ssh’s -G for sftp and scp
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Sat May 21 07:37:27 AEST 2022
https://bugzilla.mindrot.org/show_bug.cgi?id=3437
Bug ID: 3437
Summary: implement ssh’s -G for sftp and scp
Product: Portable OpenSSH
Version: v9.0p1
Hardware: Other
OS: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: Miscellaneous
Assignee: unassigned-bugs at mindrot.org
Reporter: calestyo at scientia.org
Hey.
My understanding is that ssh’s -G option acts like a --dry-run (in the
sense that it can be used jointly with any other valid options to ssh)
+ printing out the settings.
As mentioned in #3436, this makes -G great for other programs to parse
ssh_config without having to deal with any format changes/extensions
there or with going through the Host/Match blocks.
It would be nice if the same option was added to sftp and scp.
Assuming one has an arbitrary sftp/scp command line (that one wants to
have parsed, with options from ssh_config), one cannot simply replace
sftp/scp with ssh, where -G already exists, because sftp/scp have
several options and other arguments that don't work with ssh.
So one would need to implement some command line parsing to adapt to
that and use ssh instead.
Much simpler would be if sftp/scp had the same options.
Thanks,
Chris.
--
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list