mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-06-12 21:15:42 +00:00
Added clarification
This commit is contained in:
parent
442995995e
commit
e49f1ae98e
1 changed files with 2 additions and 2 deletions
|
@ -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!
|
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
|
Hostname someaddress
|
||||||
user usernameonserver
|
user usernameonserver
|
||||||
IdentityFile ~/.ssh/private_key
|
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.
|
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.
|
||||||
|
|
Loading…
Add table
Reference in a new issue