I\'d like to allow a user to set up an SSH tunnel to a particular machine on a particular port (say, 5000), but I want to restrict this user as much as possible. (Authentica
See this post on authenticating public keys.
The two main things you need to remember are:
chmod 700 ~/.ssh