OpenSSH Public Key Authentication

Key Generation

ssh-keygen -q -f ~/.ssh/id_rsa -t rsa
Enter passphrase (empty for no passphrase): …
Enter same passphrase again: …

Key Distribution

# first, upload public key from client to server

scp ~/.ssh/id_rsa.pub user@server.example.org:

# next, setup the public key on server

cat ~/id_rsa.pub >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
rm ~/id_rsa.pub

Gunpowder Treason

Remember, remember the fifth of November,
The gunpowder treason and plot,
I know of no reason
Why the gunpowder treason
Should ever be forgot.

Detecting Firebug

To detect the presence of firebug in a browser window simply check that window.console is not ‘undefined’. You can get the version of firebug by reading the value from console.firebug.