Posted on 11-07-2013 11:22 AM
2012 MBP running 10. 9 Mavericks. Attempted enrollment with Recon 9.2
Error: A connection error occurred: SSH failed to start up session with host '127.0.0.1' (Remote host closed connection)
Confirmed that SSH is on and the admin pw for the Management Account is correct. Tried to do a remote enrollment and received an error that port 22 is off.
I confirmed that the hosts file is correct with 127.0.0.1 localhost
Any ideas?
Thanks!
Corbin
Solved! Go to Solution.
Posted on 11-15-2013 08:30 AM
I ran into this today.
For me the issue was that /var/empty wasn't owned by root for whatever reason.
In /var/log/system.log it showed
sshd[1654]: fatal: /var/empty must be owned by root and not group or world-writable.
sudo chown -R root /var/empty/
fixed it.
Posted on 11-07-2013 11:24 AM
Firewall?
Posted on 11-07-2013 11:33 AM
No issue on my side. I would agree it is likely network related (and firewall at that).
Posted on 11-07-2013 11:43 AM
Firewall is enabled but allows port 22/SSH on my Mac
Having the same issue with my boss, Recon 9.2 is not able to connect to his MBA running 10.9, but he sent me confirmation the SSH is running. He does not have firewall on -
dhcp-10-14-70-249:~ esantelices$ netstat -an | grep 22 | grep LISTEN
tcp4 0 0 *.22 *.* LISTEN
tcp6 0 0 *.22 *.* LISTEN
Posted on 11-07-2013 11:56 AM
I'm getting the same results in the terminal -
Last login: Thu Nov 7 11:24:47 on console
mbp153F1G3:~ charris$ netstat -an | grep 22 | grep LISTEN
tcp6 0 0 *.22 *.* LISTEN
tcp4 0 0 *.22 *.* LISTEN
mbp153F1G3:~ charris$
Posted on 11-07-2013 12:31 PM
works for me and has since seed1
Posted on 11-07-2013 05:22 PM
I have one machine with mavericks that is exhibiting this behavior
Posted on 11-08-2013 06:52 AM
Thanks everyone! I took the ultimate step and reinstalled Mavericks this morning. Recon 9.2 connected to JSS without a problem even with the firewall on.
Corbin
Posted on 11-15-2013 08:30 AM
I ran into this today.
For me the issue was that /var/empty wasn't owned by root for whatever reason.
In /var/log/system.log it showed
sshd[1654]: fatal: /var/empty must be owned by root and not group or world-writable.
sudo chown -R root /var/empty/
fixed it.
Posted on 01-10-2014 04:29 PM
Chris, thanks for the fix. I had a few test 10.9 VM's exhibit this behavior.
Posted on 07-17-2014 11:28 AM
Thanks for the fix. This helped me out of some frustration. Any ideas as to what causes this? Thanks again.
Posted on 10-18-2015 02:19 AM
Thanks mate.
Posted on 09-04-2017 03:08 AM
I had this issue this morning on a Sierra machine. The /var/empty folder was owned by a domain user account. changing ownership to root fixed it straight away.
Posted on 12-06-2017 06:37 AM
This fix worked for me. I noticed this same issue on a macOS 10.13.1 (17B1003) after deleting my initial temporary administrator account using DEP enrollment.
Posted on 07-17-2018 05:30 AM
Saw the same error message on a 10.12.6 Mac this morning that turned out to be an erroneous subnet mask. Verified that the mask that worked was proper by our network team, and updated the documentation.