[PATCH] Add ssh_config option ExecRemoteCommand which is equivalent to -N

Damien Miller djm at mindrot.org
Tue Aug 30 14:12:16 AEST 2016

On Tue, 30 Aug 2016, Darren Tucker wrote:

> On Tue, Aug 30, 2016 at 7:08 AM, Aris Adamantiadis <aris at 0xbadc0de.be> wrote:
> > Why "ExecRemoteCommand"
> Probably defaults to yes with "ExecRemoteCommand no" to act like -N.
> If we're going to do this (and I'm not sure about it) then maybe we
> could do it via the proposed  RemoteCommand [0] option as
> "RemoteCommand none" rather than another option.

Not sure that would work, as there are three states that are possible:

ssh example.com

ssh example.com command

don't run a command
ssh -N example.com

Maybe a multi-state RemoteCommand $command | none | don't (better name
wanted). But I'm also ambivalent about a RemoteCommand option too...


More information about the openssh-unix-dev mailing list