Bug 3209 - Make overriding RemoteCommand on the cli easier
Summary: Make overriding RemoteCommand on the cli easier
Status: NEW
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 8.3p1
Hardware: All All
: P5 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-07 05:21 AEST by Camden Narzt
Modified: 2020-09-07 05:21 AEST (History)
0 users

See Also:


Attachments
suggested patch to prefer cli remote command (1.45 KB, application/octet-stream)
2020-09-07 05:21 AEST, Camden Narzt
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Camden Narzt 2020-09-07 05:21:13 AEST
Created attachment 3444 [details]
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.