ssh

package
v0.0.0-...-558f87b Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2016 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SSH_KEYS_DIR             = "ssh"
	SSH_KEY_NAME             = "karhu"
	SSH_PUBLIC_KEY_NAME      = SSH_KEY_NAME + ".pub"
	SSH_AUTHORIZED_KEYS_FILE = "authorized_keys"
	SSH_AUTHORIZED_KEYS_DIR  = "~/.ssh"
)

Variables

This section is empty.

Functions

func AuthorizedKeysPath

func AuthorizedKeysPath() string

func CheckSsh

func CheckSsh(user, ip string, port int) error

func Exec

func Exec(user, ip string, port int, command string) ([]byte, error)

func GetFingerprint

func GetFingerprint() (string, error)

func GetPublicKey

func GetPublicKey() ([]byte, error)

func PrivateKeyPath

func PrivateKeyPath() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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