bugzilla-daemon at mindrot.org
2020-Sep-06 19:21 UTC
[Bug 3209] New: Make overriding RemoteCommand on the cli easier
https://bugzilla.mindrot.org/show_bug.cgi?id=3209 Bug ID: 3209 Summary: Make overriding RemoteCommand on the cli easier Product: Portable OpenSSH Version: 8.3p1 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 Component: ssh Assignee: unassigned-bugs at mindrot.org Reporter: openssh at narzt.cam Created attachment 3444 --> https://bugzilla.mindrot.org/attachment.cgi?id=3444&action=edit suggested patch to prefer cli remote command If you have set a RemoteCommand in the cli, and specify a command at the end of the ssh command on the cli, it will error out with "Cannot execute command-line and remote command.". While you can specify -o RemoteCommand="your command here" on the cli or -o RemoteCommand=none and put your command one the end of the ssh command, or set a blank config, but it would be easier if the command specified at the end of the ssh command would simply override the RemoteCommand specified in the config. -- You are receiving this mail because: You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2024-Dec-06 14:10 UTC
[Bug 3209] Make overriding RemoteCommand on the cli easier
https://bugzilla.mindrot.org/show_bug.cgi?id=3209 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |djm at mindrot.org --- Comment #1 from Damien Miller <djm at mindrot.org> --- Created attachment 3849 --> https://bugzilla.mindrot.org/attachment.cgi?id=3849&action=edit Match command for ssh_config We want this behaviour because it's potentially dangerous to surprise oneself with a remote command where none was expected. Moreover, changing the behaviour after it's been this way for a while is doubly dangerous. IMO it's better to give people who really care about this the ability to set RemoteCommand only if there was no command-line command in the first place. E.g. this patch allows stuff like: Match command="" RemoteCommand blah -- You are receiving this mail because: You are watching someone on the CC list of the bug. You are watching the assignee of the bug.
Reasonably Related Threads
- [Bug 1815] New: RemoteCommand and PseudoTTY config options
- [Bug 1815] RemoteCommand and PseudoTTY config options
- [Bug 2558] New: Add RemoteCommand option to ssh client
- Feature request/EOI: Match interactive config?
- Feature request/EOI: Match interactive config?