Tag Archives: security

SSH Password Logging

So, i’m alive.  I know I don’t post as often as I should.  And I know you probably feel left out, alone, bereft.  Fear not, I am back.

Logging Attempted Passwords With SSH

Anyway, remember that post I made of ssh attempts way back when?  Well, I got bored.  I decided it wasn’t enough to see the usernames attempted, I needed to see the passwords attempted as well.  My first thought was to use one of the honeypot ssh servers that exist and simply run the real ssh on another port.  I didn’t like that approach.  For one thing,  I don’t want the attacker to actually make it in, not even to a fake environment.

Read more »

Mac OS X Single User Mode Password Reset

*Update* This article is out of date.  The new instructions for Lion and Mountain Lion are here.

Have you ever needed to get into a mac but didn’t know the password. Maybe you forgot it. Maybe your roommate changed it and headed off for christmas break. Maybe you stole it in an airport and now want to use it. Whatever the situation, you need in but don’t have the credentials. I’m here to help.

In Mac OS X there are at least two methods for resetting a password. And it does require resetting. This isn’t windows, you can’t just boot off a cd and automatically crack the password. Apple decided to used modern encryption techniques 10 years ago that were probably 10 years old then to protect your passwords. Microsoft still hasn’t.

Method number 1: Follow the instructions here to boot off a disc and reset your password the apple way.

Method number 2: Follow my instructions below and reset it the “cool” way.

Read more »

ssh key-based authentication.

This is a guide for setting up key-based authentication on the mac.

Key-based authentication is an alternative way of authenticating over ssh. Instead of a user name and password, you use a public/private key pair and authenticate this way. A user can optionally be specified as well.

To begin you’ll need to open Terminal.app in your Applications/Utilities folder.

Issue the following command into terminal:

mkdir ~/.ssh

Read more »