I would like to setup one of the SSH connections in my ssh_config
file to use the -N
ssh flag. I can't find any matching config keyword for this parameter. I'm using the connection for port forwarding only and I would like it to use -N
every time I execute ssh host
. I'm using mosh for the interactive shell.
-N Do not execute a remote command. This is useful for just forwarding ports (protocol version 2 only).