Persistent SSH Port Forwarding
I found myself in a scenario where I needed to be able to run a script on a remote server that would connect to an RDS Postgres instance only exposed to a jump server. The computers involved are: My client machine My remote server The jump server The RDS instance I ended up setting up a persistent ssh tunnel on the remote server using systemd. The unit file is as follows: ...