mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-10-10 06:51:13 +00:00
Website snapshot
This commit is contained in:
parent
ee0ab66d73
commit
50ec3688a5
281 changed files with 21066 additions and 0 deletions
16
content/blog/sshconfig.md
Normal file
16
content/blog/sshconfig.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
title: "SSH Config"
|
||||
date: 2019-09-27T22:46:39-04:00
|
||||
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
|
||||
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.
|
Loading…
Add table
Add a link
Reference in a new issue