0

After upgrading to Mac OS X Sierra, I am no longer able to ssh with a password, I get the error:

Permission denied, please try again.

On the one machine I have ssh keys set up for, it just automatically logs in with no password.

I have tried looking for "PasswordAuthentication" in /etc/sshd_config. It is commented out, which I have read is the default for "yes", but I have also tried setting it explicitly to "yes" and restarting the sshd daemon, with no luck.

I have tried enabling access to specific users via the command line but it still doesn't work. I do not presently have local access to the device so I can't use System Preferences to attempt this.

I have tried running the server manually with debugging output:

 sudo /usr/sbin/sshd -p 22 -d -d -d

I get the following output:

debug3: receive packet: type 50 [preauth]
debug1: userauth-request for user michael service ssh-connection method password [preauth]
debug1: attempt 3 failures 2 [preauth]
debug2: input_userauth_request: try method password [preauth]
debug3: mm_auth_password entering [preauth]
debug3: mm_request_send entering: type 12 [preauth]
debug3: mm_auth_password: waiting for MONITOR_ANS_AUTHPASSWORD [preauth]
debug3: mm_request_receive_expect entering: type 13 [preauth]
debug3: mm_request_receive entering [preauth]
debug3: mm_request_receive entering
debug3: monitor_read: checking request 12
debug3: mm_answer_authpassword: sending result 0
debug3: mm_request_send entering: type 13
Failed password for michael from xxx.xxx.xxx.xxx port yyyyy ssh2
debug3: BSM audit: typ 4 rc -1 "invalid password for user michael"
debug3: BSM audit: writing audit new record
debug3: mm_auth_password: user not authenticated [preauth]
debug3: userauth_finish: failure partial=0 next methods="publickey,password,keyboard-interactive" [preauth]
debug3: send packet: type 51 [preauth]

Which seems to suggest I am entering the wrong password, but I have triple checked and am entering the right password for the right user.

Update: Got physical access to the machine, under System Preferences it lists my account as one having ssh access.

Michael
  • 2,824

0 Answers0