Optimize SSH config file

Опубликовано: 13 Март 2026
на канале: itvraag
808
8

In this video we'll optimize the SSH config file by defining options for all hosts, group of hosts and individual hosts using wildcards.
#ssh #terminal
https://itvraag.nl

Timestamp:
0:00 Intro
0:16 SSH config file path
0:32 SSH config general options for all hosts
1:22 SSH config option for individual hosts
1:50 SSH config wildcards for group of hosts
2:22 SSH config negating hosts

Related video:
Git SSH key:    • Git #9 - SSH key authentication on GitHub  
Git private repo:    • Git #8 - Manage private remote repo on Git...  

Used SSH config file:
Host *
AddKeysToAgent yes
IdentitiesOnly yes

Host pro?
User itvraag
IdentityFile ~/.ssh/id_ed25519_pro

Host !pro*
User temp
IdentityFile ~/.ssh/id_ed25519_temp

Host puppet
HostName xxx.xxx.xxx.xxx

Host node
HostName xxx.xxx.xxx.xxx

Host pro1
HostName xxx.xxx.xxx.xxx

Host pro2
HostName xxx.xxx.xxx.xxx