Ever wish you could use ssh in single user mode? This may work some of the time.

From the console execute:

# /usr/lib/ssh/sshd

Then ssh to the server.

If you are running regular ssh this may work.