diff --git a/content/blog/sshconfig.md b/content/blog/sshconfig.md index b1cf506..4796f0b 100644 --- a/content/blog/sshconfig.md +++ b/content/blog/sshconfig.md @@ -7,10 +7,10 @@ draft: false Have you ever gone through the hassle of having multiple public/private keys for accessing your remote servers? Before recently, I used to specify the identity file in all my transactions `ssh -I ~/.ssh/private_key user@host` but no longer! I discovered you can add the following to your `~/.ssh/config` to specify which key you want to use! ``` -Host someaddress +Host somename Hostname someaddress user usernameonserver IdentityFile ~/.ssh/private_key ``` -Of course you can add multiple of these entries in that file so that you can `ssh` without having to worry about explicitly using keys. \ No newline at end of file +Of course you can add multiple of these entries in that file so that you can `ssh` without having to worry about explicitly using keys.