I know that if I want to start an SSH tunnel
ssh -d 9000 user@userserver
This is one solution for a dynamic tunnel to be opened on port 9000 for a user named "user" on the host "userserver"
However, how can I automate this process in Ubuntu so that I don't have to open up a terminal every time I log in and start the tunnel? I want to be SSH'd the moment I log in.
I know I could create a bash file but wouldn't I have to store my server user's password in plaintext as I would be prompted for it after the initial command?
sshuttle
for routing your internet through a SSH. It doesn't solve password-less login issues.sshuttle
can also be autostarted (note,sshuttle
requires admin privileges to run).