I have a desktop and a laptop, both running Ubuntu Edgy. I have sshd configured on the desktop using a custom port number and authentication key. Using ssh (with and without X) and sshfs, I can connect from the laptop to the desktop without any problems.
When traveling, however, I often have no choice but to use an unsecured wireless access point. For this, I would like to set up an SSH tunnel and SOCKS proxy forwarding
. Following the instructions there, I try typing:
ssh -D 9999 -p 2222 -i ~/.ssh/id_rsa my.homeip.address
When I enter the passphrase, it does give me an ordinary ssh connection, but with the following error:
bind: Cannot assign requested address
channel_setup_fwd_listener: cannot listen to port: 9999
Could not request local forwarding.
I've tried lots of ports, but always get the same error. I don't believe it's a firewall (firestarter) or router problem. I get a similar error when using the -L option with ssh.
I should probably mention that I've installed apache and squid in the past, but removed squid. Apache is still installed, but not active.
Can anyone point me toward a solution? I'm about ready to give up, but surely there is something simple that I'm overlooking. Thanks for any help any of you can provide.