Skip to content

Commit

Permalink
updates to comment documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
buck6058 authored and Mislav Novakovic committed May 19, 2017
1 parent b69a1a5 commit d5583c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions netconf/transport_ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,9 @@ func DialSSHTimeout(target string, config *ssh.ClientConfig, timeout time.Durati
return NewSession(t), nil
}

// SSHConfigPassword is a convience function that takes a username and password
// SSHConfigPassword is a convenience function that takes a username and password
// and returns a new ssh.ClientConfig setup to pass that username and password.
// Convenience means that HostKey checks are disabled so it's probably less secure
func SSHConfigPassword(user string, pass string) *ssh.ClientConfig {
return &ssh.ClientConfig{
User: user,
Expand All @@ -164,7 +165,7 @@ func SSHConfigPassword(user string, pass string) *ssh.ClientConfig {
}
}

// SSHConfigPubKeyFile is a convience function that takes a username, private key
// SSHConfigPubKeyFile is a convenience function that takes a username, private key
// and passphrase and returns a new ssh.ClientConfig setup to pass credentials
// to DialSSH
func SSHConfigPubKeyFile(user string, file string, passphrase string) (*ssh.ClientConfig, error) {
Expand Down

0 comments on commit d5583c1

Please sign in to comment.