Millet Porridge

English version of https://corvo.myseu.cn

0%

OpenSSH Series 9: Split the ssh_config

Split the ssh_config

OpenSSH also supports configuration splitting.

1
2
3
~ ❤  cat ~/.ssh/config
Include config.d/*
...

I suggest you split ssh_config with your company name or department name.

1
2
3
4
5
6
7
8
9
10
~ ❤  tree -L 2 .
.
├── README.md
├── authorized_keys
├── config
├── config.d
│   ├── Netease
│   ├── SEU
│   └── Tencent
└── known_hosts

Currently, VSCode remote ssh doesn’t support the configuration spliting. If you want to use this feature, you have to make sure the host you want connect is in the ~/.ssh/config