I have several SSH servers I want to connect to that can only be reached via (different) OpenVPN networks.
Now my question is: I have for each network a different set of certificates and sightly varying configurations (*.crt, *.key, *.ovpn). Since my servers can be moved from one network to another (often twice or more per day) I was wondering if there is a simple wrapper for ssh/vpn that allows me to call:
ssh firstname.lastname@example.org -ovpn "ovpnfile" -cert "cert.crt"
So that I only have to change the servername each time. That wrapper should automatically tunnel my ssh connection through openvpn and terminate the connection when I close the ssh connection.
Is this possible?