Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

ssh connection closed instantly, can't even ssh to local machine

i5 iMac, OS X 10.6.8


Remote Login for all users is enabled. Root user is also enabled. This is what I get when I even try to ssh to the local machine



machinename:~ username$ ssh root@10.XX.XX.XX -vvv

OpenSSH_5.2p1, OpenSSL 0.9.8r 8 Feb 2011

debug1: Reading configuration data /etc/ssh_config

debug2: ssh_connect: needpriv 0

debug1: Connecting to 10.XX.XX.XX [10.XX.XX.XX] port 22.

debug1: Connection established.

debug1: identity file /Users/username/.ssh/identity type -1

debug1: identity file /Users/username/.ssh/id_rsa type -1

debug1: identity file /Users/username/.ssh/id_dsa type -1

debug1: Remote protocol version 2.0, remote software version OpenSSH_5.2

debug1: match: OpenSSH_5.2 pat OpenSSH*

debug1: Enabling compatibility mode for protocol 2.0

debug1: Local version string SSH-2.0-OpenSSH_5.2

debug2: fd 3 setting O_NONBLOCK

debug1: SSH2_MSG_KEXINIT sent

Connection closed by machinename


iMac, Mac OS X (10.6.8)

Posted on Sep 14, 2011 7:47 AM

Reply
1 reply

Sep 16, 2011 6:38 AM in response to roflwoffle

Look in the /var/log/secure.log file to see what the sshd daemon reported about the connection attempt.


If you want sshd to output more debugging information you can edit


/etc/sshd_config


changing the


#LogLevel INFO


entry to


LogLevel DEBUG3


Then issuing the command:


kill -HUP `/var/run/sshd.pid` # reload sshd configuration parameters


And again going back to the /var/log/secure.log file to see the sshd output.


I would suggest restoring the /etc/sshd_config file after you are finished.

ssh connection closed instantly, can't even ssh to local machine

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