|
Replies
:
15
-
Pages
:
2
[
1
2
|
Next
]
-
Last Post
:
Apr 17, 2009 4:01 PM
by: Tim Haigh
|
|
|
Posts:
14
From:
AK,USA
Registered:
Oct 19, 2007
|
|
|
|
Cannot ssh to MacBookPro 10.5.6
Posted:
Apr 16, 2009 4:47 PM
|
|
|
Hi there,
I have a MacBookPro OS 10.5.6. I cannot ssh to it, but I can ssh out to other computers on my network. I made sure that RemoteLogin option under Sharing preferences is selected, Also made sure that 'Allow all incoming connections' option under Security>Firewall preferences is selected.
I cannot ssh to localhost and I get the same message as when trying to ssh from outside. This is spewage when running ssh in debug mode:
OpenSSH_5.1p1, OpenSSL 0.9.7l 28 Sep 2006
debug1: Reading configuration data /etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to localhost ::1 port 22.
debug1: Connection established.
debug1: identity file /Users/angelina/.ssh/identity type -1
debug1: identity file /Users/angelina/.ssh/id_rsa type -1
debug1: identity file /Users/angelina/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.1
debug1: match: OpenSSH_5.1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
Connection closed by ::1
::1 appears in /etc/hosts as localhost
I also tried uncommenting both options GSSAPIAuthentication no , GSSAPIKeyExchange no
in both /etc/ssh_config and /etc/sshd_config files, rebooted and still no luck.
Does anyone have an idea why I cannot ssh to this box but I can ssh out of it?
Thanks a bunch
MacBook Pro
Mac OS X (10.5.6)
|
|
Posts:
5,406
From:
London UK
Registered:
Oct 19, 2000
|
|
|
|
Re: Cannot ssh to MacBookPro 10.5.6
Posted:
Apr 16, 2009 6:34 PM
in response to: atr-ak
|
|
|
try ssh into it again but a very verbose login eg and post the results.
ssh -vvv ipaddress
Mac Mini 2009 2ghz, Leopard Server 10.5.6 ; MacBookPro 2.2ghz
Mac OS X (10.5.6)
Be Pro 24megabit ADSL2+
|
|
Posts:
14
From:
AK,USA
Registered:
Oct 19, 2007
|
|
|
|
Re: Cannot ssh to MacBookPro 10.5.6
Posted:
Apr 16, 2009 9:15 PM
in response to: Tim Haigh
|
|
|
Tim,
The spewage I posted earlier was from running ssh -vvv myuser@localhost. Here it is:
OpenSSH_5.1p1, OpenSSL 0.9.7l 28 Sep 2006
debug1: Reading configuration data /etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to localhost ::1 port 22.
debug1: Connection established.
debug1: identity file /Users/myuser/.ssh/identity type -1
debug1: identity file /Users/myuser/.ssh/id_rsa type -1
debug1: identity file /Users/myuser/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.1
debug1: match: OpenSSH_5.1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
Connection closed by ::1
When I run same command on another box, It works.
My /etc/hosts file has contents:
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
Thanks!
MacBook Pro
Mac OS X (10.5.6)
|
|
Posts:
101
From:
Ohio
Registered:
May 10, 2008
|
|
|
|
Re: Cannot ssh to MacBookPro 10.5.6
Posted:
Apr 17, 2009 8:05 AM
in response to: atr-ak
|
|
|
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
Hmm. At this point you should get:
debug1: SSH2_MSG_KEXINIT received
but you don't, so I'd think something is broke with the SSH service??? I assume you've already stopped/started it, or have probably rebooted by now. Just thinking out loud here...
null
MacBook 13" (unibody)
Mac OS X (10.5.6)
4gb/250gb, iPhone 3G
|
|
Posts:
5,406
From:
London UK
Registered:
Oct 19, 2000
|
|
|
|
Re: Cannot ssh to MacBookPro 10.5.6
Posted:
Apr 17, 2009 8:12 AM
in response to: atr-ak
|
|
|
try installing the 10.5.6 combo installer amongst other things it updated ssh and may fix your problem.
http://support.apple.com/downloads/Mac_OS_X_10-5-6_Combo_Update
If you still have problems create a new user on your system called test. login as that user and try ssh again.
also have you ever installed any tools such as denyhosts. have you ever configured /etc/sshd_config yourself?
Mac Mini 2009 2ghz, Leopard Server 10.5.6 ; MacBookPro 2.2ghz
Mac OS X (10.5.6)
Be Pro 24megabit ADSL2+
|
|
Posts:
14
From:
AK,USA
Registered:
Oct 19, 2007
|
|
|
|
Re: Cannot ssh to MacBookPro 10.5.6
Posted:
Apr 17, 2009 9:10 AM
in response to: bediddleby
|
|
|
I think something is broken with openssh, as I can't scp or ssh to this box. I have rebooted miltiple times and tried different things but no luck. I have another box that is same version OS and it works with same contents in the ssh config files...
Mac OS X (10.5.6)
|
|
Posts:
5,406
From:
London UK
Registered:
Oct 19, 2000
|
|
|
|
Re: Cannot ssh to MacBookPro 10.5.6
Posted:
Apr 17, 2009 9:15 AM
in response to: atr-ak
|
|
|
did you try installing openssh onto that mac? If did then this may be the problem.
Mac Mini 2009 2ghz, Leopard Server 10.5.6 ; MacBookPro 2.2ghz
Mac OS X (10.5.6)
Be Pro 24megabit ADSL2+
|
|
Posts:
14
From:
AK,USA
Registered:
Oct 19, 2007
|
|
|
|
Re: Cannot ssh to MacBookPro 10.5.6
Posted:
Apr 17, 2009 9:18 AM
in response to: Tim Haigh
|
|
|
I have installed the latest upgrades on this box. I just created an admin mytestuser and still can't ssh to the box with mytestuser@xx.xx.xx.xx. I get exact same message as before.
I think the problem is that I used a created image on this box and not install from scratch as I did on the other box I have.
I'm will just go ahead and reinstall from scratch and see if all works after that. Thanks for you help!
Mac OS X (10.5.6)
|
|
Posts:
14
From:
AK,USA
Registered:
Oct 19, 2007
|
|
|
|
Re: Cannot ssh to MacBookPro 10.5.6
Posted:
Apr 17, 2009 9:21 AM
in response to: Tim Haigh
|
|
|
Well, I downloaded the tar but have not installed anything. I'm reading up on how to exactly do that on a Mac... have to recompile, etc. and files seem to be in different locations than on linux.
Message was edited by: atr-ak
Mac OS X (10.5.6)
|
|
Posts:
14
From:
AK,USA
Registered:
Oct 19, 2007
|
|
|
|
Re: Cannot ssh to MacBookPro 10.5.6
Posted:
Apr 17, 2009 9:42 AM
in response to: Tim Haigh
|
|
|
Tim,
I did not install the combo update from the link because it says System Requirements : Mac OS X 10.5.0 - 10.5.5 and I have the latest up-to-date 10.5.6 on this box. I did however created another user and tried ssh -vvv mytestuser@xx.xx.xx.xx - exact same message and no luck
I am re-installing the OS from scratch now since looks like it's better not to try to upgrade openSSH. Thanks for all your help!
Mac OS X (10.5.6)
|
|
Posts:
5,406
From:
London UK
Registered:
Oct 19, 2000
|
|
|
|
Re: Cannot ssh to MacBookPro 10.5.6
Posted:
Apr 17, 2009 11:11 AM
in response to: atr-ak
|
|
|
I did not install the combo update from the link because it says System Requirements : Mac OS X 10.5.0 - 10.5.5 and I have the latest up-to-date 10.5.6 on this box.
That did not matter the point was it would try and fix things. I should have said try reinstalling sorry.
Mac Mini 2009 2ghz, Leopard Server 10.5.6 ; MacBookPro 2.2ghz
Mac OS X (10.5.6)
Be Pro 24megabit ADSL2+
|
|
Posts:
14
From:
AK,USA
Registered:
Oct 19, 2007
|
|
|
|
Re: Cannot ssh to MacBookPro 10.5.6
Posted:
Apr 17, 2009 2:43 PM
in response to: Tim Haigh
|
|
|
Hi Tim,
I downloaded and re-installed the package as you specified on another box that uses the same image but the problem still exists. I also created a test user after the re-install and tried to ssh using the new account but no luck.
I did flat line 10.5.4 install and the upgrade to 10.5.6 on my laptop and it all works now. It is something in that image but not sure what...
Message was edited by: atr-ak
Mac OS X (10.5.6)
|
|
Posts:
14
From:
AK,USA
Registered:
Oct 19, 2007
|
|
|
|
Re: Cannot ssh to MacBookPro 10.5.6
Posted:
Apr 17, 2009 3:37 PM
in response to: Tim Haigh
|
|
|
Tim, thanks for the tip. I looked at the /var/log/secure.log and I saw the following message:
sshd649: error: Could not load host key: /etc/ssh_host_rsa_key
I looked at the permissions of the /etc/ssh* files and all were good. I then re-generated the following files with a blank pass phrase and I can now ssh to the box successfully!
sudo ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key -N ''
sudo ssh-keygen -t rsa1 -f /etc/ssh_host_key -N ''
sudo ssh-keygen -t dsa -f /etc/ssh_host_dsa_key -N ''
Thanks again!
-Angelina
Mac OS X (10.5.6)
|
|
|