SSH and the case-sensitive username in Snow Leopard
Mac OS X 10.6 Snow Leopard introduced a lot of under-the-hood changes and many are not very obvious. One such change is to the authentication requirements for logging in remotely via SSH.
In 10.5 logging in remotely via SSH was a pretty standard affair. In 10.6, however, security has been beefed up a bit to require case-sensitive login credentials. While this requirement has already been imposed on passwords, Snow Leopard now requires a case-sensitive user name as well.
In other words, when logging in via SSH, Snow Leopard differentiates between the username "aron" and "Aron." This threw me for a loop for quite some time and is another one of the numerous reasons I have held off upgrading my Mac mini to 10.6.
Share
Source: http://www.tuaw.com/tag/ssh
Categories
Mac OS X 10.6 Snow Leopard introduced a lot of under-the-hood changes and many are not very obvious. One such change is to the...
Add a Comment
almost the dumbest article ever. Unix is notoriously case sensitive, and apparently Apple has just gotten around to fixing this lapse. Poor practice on the user's part shouldn't be considered an OS issue. If you know enough Unix to ssh (and you can always ssh -l $USER) then you should know about case sensitivity.
January 03 2010 at 12:03 PM Report abuse Permalink rate up rate down ReplyI was interested to see how many commenters (a) failed to grasp the poster's simple point, and (b) rushed in to be all condescending.
Free advice: Brush up on your reading comprehension skills. Do it as a New Year's gift to the rest of tuaw's readers, who are, you know, smart?
/rant against ninnies
I'd actually say you're the one that doesn't grasp the poster's point. His point, obviously, is to whine about upgraded security and let us all know (for some reason) that it's why he doesn't want to upgrade. On the contrary, he should notice this change, and be happy and embrace that security has been increased a tremendous amount with a simple change.
Now, if the article were written to sound like an informative notice to any readers who might not have known yet, that'd be a completely different story.
I should hope someone who is running so called "mission-critical" applications would be happy for more security, and jump all over it rather than complain about it.
Andrew, you're wrong about that.
Obviously his point is, "change in behavior that tripped me up," not "I whine about improved security."
Do you know how I know that? Here's how: It's the very first sentence of the post.
Either you're not paying attention, or you chose to misinterpret. Since we're now almost 30 comments in, I suspect the latter, sadly for the rest of us.
It never would have occurred to me SSH allowed "Aron" for "aron". Coming from a UNIX background, it's standard for case sensitivity to always be honored. Anyone who assumes otherwise is asking for trouble.
January 03 2010 at 12:01 AM Report abuse Permalink rate up rate down ReplyAron, I am surprised you haven't encountered problems before having a short name using more than lowercase letters. ACMT training use to say to never use more than lowercase letters for usernames as there were many problems that could be encountered. Last time I had my certification was tiger.
Just some advice, stick with lower case.
You guys are yelling at him and saying his credibility is hosed because he's waiting to upgrade a mission-critical system that's already stable and functional because he's afraid of undocumented changes destabilizing it? I hope I never work where you run IT.
Since Apple didn't document the change, the only way to find out about it is for it to break something that worked in 10.5. That's Aron's complaint about 10.6 - for him, there's too many _undocumented_ changes, whether for good or bad, in 10.6 for him to trust it with mission-critical services.
You didn't have a problem? That's great, good for you. Is it a PEBKAC on Aron? Because of the lack of documentation, not really. He may not be following "best practices in computing," but by not documenting a fundamental change to how a critical system utility works, neither is Apple. That's the point of this post, which looks like it went straight over everybody's head.
In 10.5, was Aron logging in using 'Aron' or 'aron'? I know case sensitivity wasn't introduced until 10.6, I'm trying to find out if the problem was self inflicted. Because if he was logging in using 'Aron' in 10.5, and then failed authentication in 10.6 because 'Aron' is different from 'aron', then the failure lies with himself. PEBKAC.
Best practices in computing say you should always assume the system supports case sensitivity, will have problems with special characters and spaces, and may even choke on too many characters. Keep your usernames, passwords, and folder/file names as clutter free a possible and you won't run into these upgrade woes.
Hey, I agree this shouldn't prevent a techie from upgrading but it is a helpful tip. I couldn't figure out why I couldn't ssh from my iPhone to my iMac using air sharing. This tip helped me...I tried proper case and it worked.
January 02 2010 at 8:54 PM Report abuse Permalink rate up rate down ReplyWait, they aren't case sensitive in 10.5?! Now THAT'S what I see as the big problem here!
January 02 2010 at 8:11 PM Report abuse Permalink rate up rate down ReplyI've never commented before but this story was so stupid that I actually took the effort to leave a comment.
You held off upgrading to 10.6 because you couldn't be bothered to hold the shift key and the "a" key at the same time. I thought people who knew how to use SSH were supposed to be smart. :[
For you and all the other maroons out there: it's pretty clear from reading the post that the poster delayed upgrading because he doesn't know what problems may still lurk undiscovered in 10.6. Of which the case-sensitive username in SSH is an example. I hope your reading skills (and your discretion about displaying their deficiencies) improve in 2010.
January 02 2010 at 8:14 PM Report abuse Permalink rate up rate down Reply@raleedy: If __case sensitivity for SSH access__ is a 'problem lurking undiscovered', then there will always be problems lurking.
The real issue here is TUAW pushing lame articles on weekends, I assume to fill some sort of quota.
I think this is a valid TuawTip and while it isn't an exhilarating story, I am sure it will help some people troubleshoot their issues.
I use X11 for my SSH connection to a Linux cluster and just assumed case sensitivity was required.
Hot Apps on TUAW
Deals of the Day
more deals- Refurb Apple MacBook Air Laptops: 12" 64GB SSD for $699 + free shipping
- JVC Motion Sensing Clock Radio with Dual iPod Docks for $55 + free shipping
- Apple iPhone Headset with Mic for $4 + $2 s&h
- miFrame Picture Frame Dock for iPad for $64 + $8 s&h
- Refurb Apple iPod nano 8GB MP3 Player for $99 + free shipping, 16GB for $119
- Hannspree Apple-Shaped 28" 1080p LCD HDTV for $270 + free shipping
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



28 Comments