sshutils

package
v0.0.0-...-27459d4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocalPublicSSHKey

func GetLocalPublicSSHKey() string

func SSHFingerprintGen

func SSHFingerprintGen(publicSSH string) string

Types

type Connection

type Connection struct {
	*ssh.Client
}

func Connect

func Connect(addr, user, password string) (*Connection, error)

func ConnectWithPassword

func ConnectWithPassword(addr, user, password string) (*Connection, error)

func GetConnection

func GetConnection(ip string, port int, username string, password string) (*Connection, error)

func GetConnectionBuild

func GetConnectionBuild(ip string, port int, username string, password string) (*Connection, error)

func RunCommand

func RunCommand(command string, ip string, port int, username string, password string) (*Connection, error)

func RunCommandWithPassword

func RunCommandWithPassword(command string, ip string, port int, username string, password string) *Connection

Jump to

Keyboard shortcuts

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