Cannot connect to host with SSH

Recently the hard drive on my powerbook g4 began crashing. Luckily I was able to backup the user folders to another machine before replacing the drive. Once the drive was replaced, I installed Tiger. Once the powerbook was back up and running, I moved the user folders back from the other machine.

Now, I am unable to make a connection to my web site host via SSH. Here is a copy / paste from the terminal window of a recent attempt:

shell:~ user$ ssh -v -l user host
OpenSSH_3.8.1p1, OpenSSL 0.9.7g 11 Apr 2005
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to host [209.59.154.44] port 22.
debug1: Connection established.
debug1: identity file /Users/user/.ssh/identity type -1
debug1: identity file /Users/user/.ssh/id_rsa type -1
debug1: identity file /Users/user/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.9p1
debug1: match: OpenSSH_3.9p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.8.1p1
debug1: An invalid name was supplied
Cannot determine realm for numeric host address

debug1: An invalid name was supplied
A parameter was malformed
Validation error

debug1: An invalid name was supplied
Cannot determine realm for numeric host address

debug1: An invalid name was supplied
A parameter was malformed
Validation error

debug1: SSH2 MSGKEXINIT sent
debug1: SSH2 MSGKEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2 MSG_KEX_DH_GEXREQUEST(1024<1024<8192) sent
debug1: expecting SSH2 MSG_KEX_DH_GEXGROUP
debug1: SSH2 MSG_KEX_DH_GEXINIT sent
debug1: expecting SSH2 MSG_KEX_DH_GEXREPLY
debug1: Host 'host' is known and matches the RSA host key.
debug1: Found key in /Users/user/.ssh/known_hosts:1
debug1: ssh rsaverify: signature correct
debug1: SSH2 MSGNEWKEYS sent
debug1: expecting SSH2 MSGNEWKEYS
debug1: SSH2 MSGNEWKEYS received
debug1: SSH2 MSG_SERVICEREQUEST sent
debug1: SSH2 MSG_SERVICEACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
Connection closed by 209.59.154.44

I have determined that this is a problem somewhere between my powerbook and using Airport to connect wirelessly to the internet. I have a Base Station connected to a cable modem. To test this theory, I connected the powerbook directly to the cable modem via ethernet and had no problem using SSH.

Here are some additional troubleshooting steps I have taken trying to get this to work:
Deleting the known hosts file.
Deleting the .shh folder.
Adjusting Airport configuration settings.
Triple checking the firewall is off.
Repairing permissions using Hard disk utility.
Attempting to use SSH in a new user account.

I have also done the following to make sure it is my powerbook having the problem and not the host:
Successfully connecting to host from a different Mac running Tiger.
Successfully connecting to host from a PC running Linux.
Successfully connecting to host from a PC running Windows XP.

Can anyone help me?
Jona

Posted on Oct 30, 2005 8:49 AM

Reply
32 replies

Mar 16, 2006 7:50 PM in response to Don Flinspach

That sounds completely like what we were already
discussing. Sudden, inexplicable, first-of-the-month
failure. My guess is that it’s cleared up by now
with no action on your part, or that you’ve taken the
DNS (or /etc/hosts) steps to work around something
that shouldn’t be breaking.

In the words of Alice: “Curiouser and curiouser.”


Sorry that I didn't get back to you all, I've been working at quite a few things. It turned out that the Motorola "router" had gone flakey. I updated the firmware and reset everything and now all's well.

Doug

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Cannot connect to host with SSH

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