You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

error making an ssh tunnel

I'm getting an error trying to create an ssh tunnel.

*ssh –L 10548:localhost:548 username@my.computer.at.work*

returns

*ssh: Error resolving hostname \342\200\223L: nodename nor servname provided, or not known*

normal ssh works ok so the problem is with localhost. This only happens on one of my computers. the other one connects fine using the same internet connection.

P.S. I just checked and this only happens on one user account. the rest are fine.


Message was edited by: V.K.

this thread is the continuation of [this one|http://discussions.apple.com/thread.jspa?messageID=7218912#7218912].

Message was edited by: V.K.

Mac Pro 3.2 GHz, Mac OS X (10.5.2), Mac Pro 2.66GHz, powerbook G4 1.5GHz

Posted on May 17, 2008 12:49 PM

Reply
18 replies

May 17, 2008 2:18 PM in response to V.K.

Very strange. I wonder what \342\200\223L means. You can create a tunnel to the same username@my.computer.at.work from another account on the same client Mac?

The localhost parameter is actually sent to the server, i.e. it means that sshd should connect port 548 on localhost. What if you put "10548:localhost:548" in quotes? Or try "*ssh –L 10548:my.computer.at.work:548 username@my.computer.at.work*". You could also try moving or renaming your local ~/.ssh folder to make sure there are no local user settings that are confusing things.

May 17, 2008 4:54 PM in response to V.K.

Just for fun, try replacing 'localhost' with 127.0.0.1

A few years ago I ran into a problem with 'localhost' being associated with IPv6 which, at that time, gave the version of ssh I was using some problems, and 127.0.0.1 is IPv4. This has most likely be resolved, but as an experiment making this substituion can't hurt.

May 17, 2008 5:08 PM in response to V.K.

V.K. wrote:
Someone on another board suggested that I could be using different versions of ssh on different accounts. Don't know how that can be or how to check it...

It could be. *ssh -V* will print the version number. You can also type *which ssh* to get the patch of the ssh that the account is using.

error making an ssh tunnel

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.