ssh

2023-11-23

forward port

How to forward local port 8385 to remote port 8384

ssh  -L 8385:localhost:8384 remote

close ControlPersist sessions

The -O flag controls an active connection multiplexing master process.

Valid commands are:

Either exit or stop should work.

ssh -O stop server

or

ssh -O exit server