Isn't this solving the problem? https://github.com/balena-io/sshproxy