Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Is there a real SSH problem in OS X?

Is there a real SSH problem in OS X?
Thread Tools
Grizzled Veteran
Join Date: Oct 2000
Location: Cardiff, Wales
Status: Offline
Reply With Quote
Aug 19, 2005, 09:38 AM
 
There seems to be a general problem with the SSH client in OS X. In certain network setups, it takes an eternity to connect to the server. From reading I did a while back it came about because of a update to OpenSSH in a 10.2.x release.

The Problem:

I currently have a server with one IP address which is mapped with NAT to an internal IP address. SSH doesn't seem to like this! It's looking for a name...or an address... or a meaning in life.

Whereas Apple Remote Desktop connects to the server immediately, SSH just waits... After it connects, the speed is absolutely fine. SSH clients on Windows work much better.

Likewise, I had another server with a more acute problem - SSH/SFTP would take so long that I had to enter my password within about 3 seconds before the whole thing timed out.

This server never had a DNS name to go with the IP address (the server had multiple network cards with different IP addresses). (I think) I fixed the problem by adding a dummy address to my hosts file.

Sadly, it doesn't work in this case.

Anyone else having these difficulties?

Chris
     
Mac Elite
Join Date: Oct 2000
Location: Seattle
Status: Offline
Reply With Quote
Aug 21, 2005, 11:22 PM
 
I believe ssh does a DNS lookup as part of authentication - depending on your network or ISP this can take a while. Mine always connects faster the second time.

I have a friend using a crappy ISP with lousy DNS and it takes much longer to ssh in from there.

Have you tried setting up a key based auth?
You can take the dude out of So Cal, but you can't take the dude outta the dude, dude!
     
Mac Elite
Join Date: May 2001
Location: Vancouver
Status: Offline
Reply With Quote
Sep 10, 2005, 02:30 AM
 
Troubleshooting the other SSH problem recently, I came across this:
CheckHostIP yes
The option CheckHostIP specifies whether or not ssh will additionally check the host IP address that connect to the server to detect DNS spoofing. It's recommended that you set this option to yes.
Have you tried turning this option off?
Macbook (Black) C2D/250GB/3GB | G5/1.6 250GBx2/2.0GB
Free Mobile Ringtone & Games Uploader | Flickr | Twitter
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:44 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2