common

package
v4.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadIdentity

func LoadIdentity(idFn string) (*client.Key, ssh.HostKeyCallback, error)

LoadIdentity loads the private key + certificate from a file Returns:

  • client key: user's private key+cert
  • host auth callback: function to validate the host (may be null)
  • error, if something happens when reading the identity file

If the "host auth callback" is not returned, user will be prompted to trust the proxy server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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