I want to setup a linux server (Ubuntu Server 14.04 in this case) to be used as a SOCKS5 proxy by software on another client.
Now this is pretty easy by running ssh -f -N -D 0.0.0.0:1080 localhost as explained by this guide. This works perfectly.
Now what the guide isn't telling me is how do I automatically start the proxy on system startup? Just entering this command into rc.local isn't working because I have to provide a passphrase. Generating a ssh key with ssh-keygen and putting it into /root/.ssh/ doesn't work either.
Be noted that I don't really understand how the whole ssh public key thing works, so my error might lie there. Anything special I have to do when my public key is supposed be used for the local client and not a remote client?