Quick and simple SSH things.

Add these things to ~/.ssh/config and you’ll get magic powers.

Host *
IdentityFile ~/.ssh/%h

Put your keys in ~/.ssh/ and name them by the hostname you ssh to, and you’ll automagically add them to your config without having to edit it each time. Change the directory to whatever, if you’re picky.

Host splunk*
    User bob

Host web*
    User bob_web
    Port 2280

Login to your splunk boxes as bob, and your web servers on port 2280 as bob_web. Wildcards are great, and you can use “Host *” for everything.

UseRoaming no

The above mitigates CVE-2016-0777(and 0778) - it should probably be the first line in your config 🙂

That’s it for now 🙂

#HOWTO #ssh #Work