We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could we please add a PrivateKeyFileWithPassphrase for parsing private key files with a passphrase?
PrivateKeyFileWithPassphrase
I can create a PR for it if you want to.
func PrivateKeyFileWithPassphrase(file string, passphrase string) ssh.AuthMethod { buffer, err := ioutil.ReadFile(file) if err != nil { return nil } key, err := ssh.ParsePrivateKeyWithPassphrase(buffer, []byte(passphrase)) if err != nil { return nil } return ssh.PublicKeys(key) }
The text was updated successfully, but these errors were encountered:
Yes. Please add a PR for this :)
Sorry, something went wrong.
Add PrivateKeyFileWithPassphrase from elliotchance#11
fd7e608
No branches or pull requests
Could we please add a
PrivateKeyFileWithPassphrase
for parsing private key files with a passphrase?I can create a PR for it if you want to.
The text was updated successfully, but these errors were encountered: