I'm running the following script to create a connection to a vpn
.
sshpass -p <pass> ssh -Nf -C -D <port> <user>@<ip>
Problem: sometimes the socket shuts down silently (maybe if not in use).
How can I add some kind of "keep alive" statement to the ssh connection?