I am running a code-server on my remote Ubuntu machine and right now my method for starting it up is to
ssh -t -t user@server "code-server"
on one terminal (the-t -t
I got from this)ssh -N -L 8443:127.0.0.1:8443 user@server
on a second terminal- Open the application on the browser
Then when I want to close it, I just close both terminals. My question is if would be possible to do this using only one connection, currently I have to authenticate twice because this requires two ssh sessions, one for starting the application and sending the KILL when closed and another one for the tunneling.