You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The wrong identity file path is parsed. When the wrong identity file path is present, there is a configuration in which the Host parameter is just a wildcard. If there are multiple wildcards, the last one is used when the wrong identity file path is parsed.
Steps to reproduce
Put the following in your ~/.ssh/config file
Host remote_host
HostName hostname.com
User user
IdentityFile ~/.ssh/id_rsa_good
Host *
AddKeysToAgent yes
IdentityFile ~/.ssh/id_rsa_bad
Note that the program prints other parameters just to be sure that all the others are correct.
Up until now, I've never had an issue with the others, but maybe that's because I don't actually use any other overlapping parameters in the wildcard configuration.
Expected behaviour
Program prints
identity path = ~/.ssh/id_rsa_good
Actual behavior
Program prints
identity path = ~/.ssh/id_rsa_bad
Environment
OS: MacOS Ventura
Architecture: Arm
Rust version: 1.64.0
remotefs version: N/A
Protocol used: N/A
Remote server version and name: N/A
Additional information
The text was updated successfully, but these errors were encountered:
teamwork-alockhart
changed the title
[BUG] - Sometimes an unexpected identity file is parsed
[BUG] - Sometimes an unexpected identity file path is parsed
Nov 9, 2022
Description
The wrong identity file path is parsed. When the wrong identity file path is present, there is a configuration in which the Host parameter is just a wildcard. If there are multiple wildcards, the last one is used when the wrong identity file path is parsed.
Steps to reproduce
Put the following in your ~/.ssh/config file
Parse the config with the following code:
Note that the program prints other parameters just to be sure that all the others are correct.
Up until now, I've never had an issue with the others, but maybe that's because I don't actually use any other overlapping parameters in the wildcard configuration.
Expected behaviour
Program prints
Actual behavior
Program prints
Environment
Additional information
The text was updated successfully, but these errors were encountered: