I am trying to set up an alias in my config that should give the same result as
ssh -N -L 3307:1.1.1.1:3306 username@remoteip
My current .ssh/config looks something like this.
Host connect
User username
HostName remoteip
port 22
LocalForward 3307 1.1.1.1:3306
What do I put in the above config to not start a shell?
Host connect
User username
HostName remoteip
port 22
LocalForward 3307 1.1.1.1:3306
SessionType none
sessiontype just gives Bad configuration option: sessiontype even though its documented on manual for ssh options
What version of SSH are you using (ssh -V
)?
From the release notes it looks like this feature was only added in version 8.7 released in August last year. Maybe updating SSH might solve your problem?