libssh

package
v0.0.0-...-cc6e817 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadPrivateKey

func LoadPrivateKey(r io.Reader) (ssh.AuthMethod, error)

LoadPrivateKey loads ssh rsa or dsa private keys, is exported for testing

func SearchHostKey

func SearchHostKey(r io.Reader, hostname, ip string, port int) (hostKey ssh.PublicKey)

SearchHostKey searches for a host-entry in a reader in openssh-format, will work for normal and hashed

Types

This section is empty.

Jump to

Keyboard shortcuts

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