Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | (GH-737) Allow known_hosts to have empty lines and comments | donoghuc | 2020-02-15 | 1 | -0/+3 |
| | | | | Previously empty lines in a known_hosts file would result in an exception parsing the file. This commit updates the parser to allow empty lines as well as comments. Note that comments were already supported. | ||||
* | Add support for hostnames matching | Romain Tartière | 2019-02-14 | 1 | -0/+1 |
| | | | | | | The known_hosts file can contain pattern for matching hosts. When looking for a known host, match the user provided hostname with the patterns found in the known_hosts file. | ||||
* | Fix host key checking | Romain Tartière | 2019-02-11 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | The known_hosts file may contain keys associated with a hostname, an ip-address, or both. When validating a key, the net-ssh gem ensure that both the hostname and the ip-address match beforce adding that key. Thus, if the known_hosts file only contains one of these two pieces of information, the host key verification fails. Instead of adding keys when both the hostname and the ip-address match, add them when the user-supplied identification of the remote host match an entry in the known_hosts file. Optionaly, if `check_host_ip` is set to true, the resolved IP address of the remote host is also checked. | ||||
* | Add support for hostname hashes for searching keys in known hosts | Jef Mathiot | 2015-06-16 | 1 | -0/+1 |
| | |||||
* | Added a test suite to increase the coverage of keys_for method in KnownHosts ↵ | Marco Sandrini | 2012-05-24 | 1 | -0/+1 |
class |