UserPreferences

ApplicationNotes/SshNotes


1. SSH Notes

1.1. Public Key Authentication Between OpenSSH and SSH.com's SSH

OpenSSH and SSH.com's SSH use different formats for public keys and are configured differently. SSH.com's SSH uses the SECSH format, which is a draft RFC. OpenSSH's ssh-keygen has the ability to convert between the two formats.

(there can be only one key per file).

in as few steps as possible (which also helps with a for loop and a list of host names), which can be done like this:
ssh SERVER "mkdir -p 600 .ssh; cat >> .ssh/authorized_keys2" < .ssh/PUB_KEY_FILE
ssh will prompt for your password and read input on different file descriptors than stdout and stdin, so this works.

1.2. Server Hopping

Let's say you've got a gateway ssh host that you have to login to before logging into internal hosts. You're lazy and only want to type one command. Here's what you do:
$ ssh -t 'ssh user@host'
Pretty obvious, huh? Not sure why it took me to long to realize I could do it.