diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2022-03-11 18:08:39 -0500 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2022-03-11 18:33:50 -0500 |
commit | 5fcb8da16d4b33fa52880c1c3e848654a698d34d (patch) | |
tree | 87173c289c907f0bf0f1c2bbba9a4ef11064d945 /paramiko/config.py | |
parent | 1bf3dce7255ff2055dcdbc4d29454fb0184dfaf7 (diff) | |
download | paramiko-5fcb8da16d4b33fa52880c1c3e848654a698d34d.tar.gz |
OpenSSH docs state %C should also work in IdentityFile and Match exec
(at least, of what we presently ourselves support - it's also allowed in others)
Diffstat (limited to 'paramiko/config.py')
-rw-r--r-- | paramiko/config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/config.py b/paramiko/config.py index c2a58e4e..9c21e4e5 100644 --- a/paramiko/config.py +++ b/paramiko/config.py @@ -62,11 +62,11 @@ class SSHConfig(object): TOKENS_BY_CONFIG_KEY = { "controlpath": ["%C", "%h", "%l", "%L", "%n", "%p", "%r", "%u"], "hostname": ["%h"], - "identityfile": ["~", "%d", "%h", "%l", "%u", "%r"], + "identityfile": ["%C", "~", "%d", "%h", "%l", "%u", "%r"], "proxycommand": ["~", "%h", "%p", "%r"], # Doesn't seem worth making this 'special' for now, it will fit well # enough (no actual match-exec config key to be confused with). - "match-exec": ["%d", "%h", "%L", "%l", "%n", "%p", "%r", "%u"], + "match-exec": ["%C", "%d", "%h", "%L", "%l", "%n", "%p", "%r", "%u"], } def __init__(self): |