https://github.com/alebeck/boring Менеджер ssh туннелей, написанный на go.

#simple tunnel

[[tunnels]] name = "dev" local = "9000" remote = "localhost:9000" host = "dev-server" # automatically matches host against SSH config

#example of an explicit host (no SSH config)

[[tunnels]] name = "prod" local = "5001" remote = "localhost:5001" host = "prod.example.com" user = "root" identity = "~/.ssh/id_prod" # will try default ones if not set

#... more tunnels

Пишем простенький конфиг. Дальше через boring list, boring open, boring close быстренько открываем/закрываем туннели.