utils

package
v0.0.0-...-de37914 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSCPClient

func CreateSCPClient(hc HostConfig) (*scp.Client, error)

func CreateSession

func CreateSession(client *ssh.Client) (*ssh.Session, error)

func DialSsh

func DialSsh(hc HostConfig) (*ssh.Client, error)

func RequestPty

func RequestPty(session *ssh.Session) error

Types

type HostConfig

type HostConfig struct {
	Host         string
	Hostname     string
	Port         string
	User         string
	IdentityFile string
	Config       map[string]string
}

func LoadHostConfig

func LoadHostConfig(host string) (HostConfig, bool)

Jump to

Keyboard shortcuts

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