I've had success setting up a tunnel using Putty with windows to my linux box. I'm trying to do the same without putty in a linux shell. Everything works fine, except for one small detail. I learned that when i set up the tunnel, I had to use the fully qualified name to get it working. For example, instead of just connecting to domain.com, I would have to connect using machine.domain.com and the tunnel works perfect.
But when using ssh from a shell, I can't use machine.domain.com and the tunnel won't work correctly. The tunnel is used to connect to a squid proxy. Any ideas on why this would be or how to fix it?
I'm connecting like this...
ssh -L localport:localhost:remoteport firstname.lastname@example.org