LoginSignup
19
9

More than 5 years have passed since last update.

.ssh/configを分割する

Last updated at Posted at 2017-03-30
$ ssh -V
OpenSSH_7.3p1, LibreSSL 2.4.1

OpenSSHのバージョン7.3からssh configファイルの分割に対応しているようなので、試してみました。

~/.ssh/configの中で、

Include *.conf

のようにファイル名を指定すると、~/.ssh/*.confが読み込まれます。

.ssh
├── aws.conf
├── bitbucket.conf
├── config
├── github.conf
├── id_rsa
└── id_rsa.pub

こんな感じでファイルを分割できるようになります。
gitなどで一部のconfを共有できたり、うれしいですね。

19
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
19
9