SSH problem on Mac OS X 10.6.6

I used to connect using ssh to my remote server which placed over seas. In Ubuntu Linux It works like a charm. Today I noticed that I can’t connect to my OpenSSH service using Mac OS X while Ubuntu was still working. I don’t know what happened to my Mac. I didn’t change any thing.

using ssh -v switch I noticed that after establishing the connection client just stops here:

~ ->ssh -D 9996 -v remoteUser@remoteMachine
OpenSSH_5.2p1, OpenSSL 0.9.8l 5 Nov 2009
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to remoteMachine [remoteMachine] port 22.
debug1: Connection established.
debug1: identity file /Users/amirsedighi/.ssh/identity type -1
debug1: identity file /Users/amirsedighi/.ssh/id_rsa type 1
debug1: identity file /Users/amirsedighi/.ssh/id_dsa type -1

Nothing just happened any more!

The problem has been fixed by following simple steps:

1. Go to ~/.ssh folder and rename known_hosts to make it out of order.

~ ->cd .ssh/
~ ->mv known_hosts known_hosts.back

2.┬áRun ssh-keygen in terminal and leave the questions all by just pressing ‘return’ key:

ssh-keygen -t rsa

3. Run SSH and answer yes to the below question:

Are you sure you want to continue connecting (yes/no)? yes

Now the known_hosts has been created again.


This method is totally insecure. This means your ISP is doing something wrong with secured protocols such as ssh or ssl. See this article.

This entry was posted in Mac OS X, Networking. Bookmark the permalink.

One Response to SSH problem on Mac OS X 10.6.6

  1. search engine optimization pricing says:

    I just added this site to my bookmarks. I like reading your posts. Thank you!

Leave a Reply