# ssh

#### Create ed25519 Key
    ssh-keygen -t ed25519 -C "comment or email <email@example.com>""

#### diff over ssh
    diff foo <(ssh server 'cat foo')
    diff <(ssh server1 'cat foo') <(ssh server2 'cat foo')

#### poor mans ssh tunnel
    <local port> <target> <remote port> <bastion>
    ssh -L 8000:example.com:443 mybastionhost.com

#### Manually Create `authorized_keys`
I don't usually have password auth enabled which breaks `ssh-copy-id` so I need to manually create keys if I'm doing some testing.

    mkdir .ssh
    chmod 700 .ssh
    touch .ssh/authorized_keys
    chmod 400 .ssh/authorized_keys
    chown -R user:user .ssh
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9