Secure connection to a remote Bitcoin Core instance

There was a question about encrypting RPC connections between Counterparty Server and Bitcoin Core.
This could be useful in case several people wanted to share a cloud-hosted instance of Bitcoin Core with addrindex patch.

autossh may be a good approach for that. Each user could have a different user account on the target machine while Bitcoin Core addrindex would run under a separate account.
http://www.ubuntugeek.com/automatically-restart-ssh-sessions-and-tunnels-using-autossh.html