Skip to content

Commit

Permalink
Fix mistyping
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Labutin <dmitry@labutin.com>
  • Loading branch information
Labutin authored and Dmitry Labutin committed Feb 7, 2018
1 parent 98916b8 commit aab2d9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plumbing/transport/ssh/auth_method.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func (a *PublicKeysCallback) ClientConfig() (*ssh.ClientConfig, error) {
}

// NewKnownHostsCallback returns ssh.HostKeyCallback based on a file based on a
// know_hosts file. http://man.openbsd.org/sshd#SSH_KNOWN_HOSTS_FILE_FORMAT
// known_hosts file. http://man.openbsd.org/sshd#SSH_KNOWN_HOSTS_FILE_FORMAT
//
// If files is empty, the list of files will be read from the SSH_KNOWN_HOSTS
// environment variable, example:
Expand Down Expand Up @@ -286,7 +286,7 @@ func filterKnownHostsFiles(files ...string) ([]string, error) {
}

if len(out) == 0 {
return nil, fmt.Errorf("unable to find any valid know_hosts file, set SSH_KNOWN_HOSTS env variable")
return nil, fmt.Errorf("unable to find any valid known_hosts file, set SSH_KNOWN_HOSTS env variable")
}

return out, nil
Expand Down

0 comments on commit aab2d9b

Please sign in to comment.