Go Back   The macosxhints Forums > OS X Help Requests > UNIX - General



Reply
 
Thread Tools Rate Thread Display Modes
Old 06-20-2009, 03:02 AM   #1
Egrefen
Triple-A Player
 
Join Date: Nov 2004
Posts: 61
Unhappy SSH broken :(

Out of the blue, I can't seem to SSH into my iMac anymore as of last update.

1) I checked that remote login was turned on in sharing.
2) I can see and ping my iMac
3) My password has not been changed (checked with 'sudo ls')
4) The problem occurs when trying to SSH into my iMac from my iMac itself ('ssh localhost')

The symptoms are:
a) Host is found, password requested.
b) Give password, abnormal pause.
c) Password requested again, not mention of permission being denied.

Here's a sample from secure.log for one such login attempt.
Code:
Jun 20 08:59:24 h072 com.apple.SecurityServer[22]: Failed to authorize right system.login.tty by client /usr/sbin/sshd for authorization created by /usr/sbin/sshd.
Jun 20 08:59:24 h072 sshd[18313]: error: PAM: Authentication failure for illegal user Edward from localhost
Jun 20 08:59:24 h072 sshd[18313]: Failed keyboard-interactive/pam for invalid user Edward from ::1 port 52916 ssh2
I'd naturally greatly appreciate any help with this issue, as I'm leaving town soon but need to access my iMac to check up on project work.
Egrefen is offline   Reply With Quote
Old 06-20-2009, 03:16 AM   #2
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 31,956
The "illegal user" stuff in the logs might mean that your user account is not listed as being allowed to use 'ssh' in the ssh config files - have you changed these?

Or perhaps it indicates some corruption in the user accounts database. Maybe try creating a new user and tying when logged in as that user.
__________________
hayne.net/macosx.html
hayne is offline   Reply With Quote
Old 06-20-2009, 03:25 AM   #3
Egrefen
Triple-A Player
 
Join Date: Nov 2004
Posts: 61
No, but I did update from 10.5.6 for 10.5.7 recently. Is there anything specific I should look for? If possible, I'd rather not have to create a new user.
Egrefen is offline   Reply With Quote
Old 06-20-2009, 03:31 AM   #4
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 31,956
Creating a new user is merely a diagnostic step.
__________________
hayne.net/macosx.html
hayne is offline   Reply With Quote
Old 06-20-2009, 03:41 AM   #5
Egrefen
Triple-A Player
 
Join Date: Nov 2004
Posts: 61
Have tried. Can't login to that user, and same problem when I switch.

EDIT: By "can't login" I mean "via ssh".
Egrefen is offline   Reply With Quote
Old 06-20-2009, 07:34 AM   #6
agentx
Hall of Famer
 
Join Date: Feb 2003
Location: Brighton, UK
Posts: 3,832
I presume you are using the command

ssh edward@ip_address_of_machine ?

In System Prefs > Sharing > Remote Login > Allow Access for all users ?
agentx is offline   Reply With Quote
Old 06-20-2009, 08:43 AM   #7
Egrefen
Triple-A Player
 
Join Date: Nov 2004
Posts: 61
Quote:
Originally Posted by agentx
I presume you are using the command

ssh edward@ip_address_of_machine ?

In System Prefs > Sharing > Remote Login > Allow Access for all users ?

Funny story. Turns out I (presumably) accidentally clicked "Allow access only for these users" in that menu, and left the list blank.

Thanks for the help troubleshooting.
Egrefen is offline   Reply With Quote
Old 01-10-2010, 05:49 PM   #8
iaw4
Triple-A Player
 
Join Date: Sep 2008
Posts: 59
OSX gives a terribly uninformative error message here. it really should say "ssh access not allowed for edward; see System Prefs > Sharing > Remote Login > Allow Access for all users'
iaw4 is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 12:20 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.