Add support for ssh passphrases.

This commit is contained in:
Marcin Bilski
2022-01-14 12:35:20 +01:00
parent 6768e02d91
commit c327898faa
4 changed files with 13 additions and 11 deletions

View File

@@ -61,4 +61,4 @@ func NoAuth() Auth { return Auth{} }
func Password(username, password string) Auth { return Auth{Username: username, Password: password} }
// Key returns an Auth implementation that uses key file authentication mechanism.
func Key(key string) Auth { return Auth{Key: key} }
func Key(key, password string) Auth { return Auth{Key: key, Password: password} }