Files
home-manager/modules
zimbatm b535770bd4 ssh: tweak default controlPath
Instead of using the hostname `%h`, which can be changed by the
~/.ssh/config file, use the commandline-given hostname `%n`.

This allows to alias a host with different hostnames, which then point
to different configurations. A common use-case for this is if you have
multiple accounts on github with each access to different private repos:

    Host github.com
      IdentitiesOnly yes
      User git
      IdentityFile ~/.ssh/id_rsa

    Host customer.github.com
      IdentitiesOnly yes
      User git
      IdentityFile ~/.ssh/customer
      HostName github.com

Without this change, if a connection was established with the first
github.com alias, then the user would try to pull a repo from the second
account, ssh would re-use the SSH connection which doesn't have access
to that repository.

(cherry picked from commit 40b279e3a3)
2018-12-06 00:31:53 +01:00
..
2018-11-18 19:55:28 +01:00
2018-07-27 22:07:12 +02:00
2018-11-25 23:13:13 +01:00
2018-12-06 00:31:53 +01:00
2018-05-18 23:22:03 +02:00
2018-11-25 23:13:13 +01:00
2018-05-09 16:22:02 +02:00