summaryrefslogtreecommitdiff
path: root/test/known_hosts
Commit message (Collapse)AuthorAgeFilesLines
* (GH-737) Allow known_hosts to have empty lines and commentsdonoghuc2020-02-151-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 matchingRomain Tartière2019-02-141-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 checkingRomain Tartière2019-02-111-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 hostsJef Mathiot2015-06-161-0/+1
|
* Added a test suite to increase the coverage of keys_for method in KnownHosts ↵Marco Sandrini2012-05-241-0/+1
class