[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#743972: SSH Hostname config parsing broken



severity 743972 important
thanks

Hi,

I can confirm, this is definitely broken. Now matter how canonicalizehostname is set, it reparses the whole config file with the "new" hostname, if you set "Host some.name" in the config section.

It even affects "Match originalhost" lines, as it reparses with the new hostname filling in the originalhost.

Example:

------------------------------------
Host gitadmin
     User                git
     IdentitiesOnly      yes
     IdentityFile        ~/.ssh/id_gitoliteadm
     Hostname            git
     CanonicalizeHostname no

Match originalhost *,!gitadmin
     IdentityFile        ~/.ssh/id_lh
-----------------------------------

(Replacing the Match line with a "Host !gitadmin *" doesnt make a difference, same bug).

Effect:

--------
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: Hostname has changed; re-reading configuration
debug1: Reading configuration data /home/ganneff/.ssh/config
debug1: /home/ganneff/.ssh/config line 143: matched 'OriginalHost git'
---------


This is just wrong, the originalhost is gitadmin!

--
bye Joerg


Reply to: