extssh

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadPrivateKey

func LoadPrivateKey(filename string, passPhrase ...[]byte) (ssh.Signer, error)

LoadPrivateKey load from file and parse private key

func LoadPrivateKey2AuthMethod

func LoadPrivateKey2AuthMethod(filename string, passPhrase ...[]byte) (ssh.AuthMethod, error)

LoadPrivateKey2AuthMethod load from file and parse private key file to ssh.AuthMethod

func ParsePrivateKey

func ParsePrivateKey(pemBytes []byte, passPhrase ...[]byte) (ssh.Signer, error)

ParsePrivateKey parse private key

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL