remote

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConnErrCode_ConfigParse    = "config-parse"
	ConnErrCode_ConfigDefault  = "config-default"
	ConnErrCode_ProxyDepth     = "proxy-depth"
	ConnErrCode_ProxyParse     = "proxy-parse"
	ConnErrCode_SecretStore    = "secret-error"
	ConnErrCode_SecretNotFound = "secret-notfound"
	ConnErrCode_KnownHostsNone = "knownhosts-none"
	ConnErrCode_KnownHostsFmt  = "knownhosts-format"
	ConnErrCode_Dial           = "dial-error"
	ConnErrCode_HostKeyRevoked = "hostkey-revoked"
	ConnErrCode_HostKeyChanged = "hostkey-changed"
	ConnErrCode_HostKeyVerify  = "hostkey-verify"
	ConnErrCode_UserCancelled  = "user-cancelled"
	ConnErrCode_UserTimeout    = "user-timeout"
	ConnErrCode_AuthFailed     = "auth-failed"
	ConnErrCode_Unknown        = "unknown"
)
View Source
const SshProxyJumpMaxDepth = 10

Variables

This section is empty.

Functions

func ClassifyConnError

func ClassifyConnError(err error) string

func ConnectToClient

func ConnectToClient(connCtx context.Context, opts *SSHOpts, currentClient *ssh.Client, jumpNum int32, connFlags *wconfig.ConnKeywords) (*ssh.Client, int32, error)

func CpWshToRemote

func CpWshToRemote(ctx context.Context, client *ssh.Client, clientOs string, clientArch string) error

func GetClientPlatform

func GetClientPlatform(ctx context.Context, shell genconn.ShellClient) (string, string, error)

returns (os, arch, error) guaranteed to return a supported platform

func GetClientPlatformFromOsArchStr

func GetClientPlatformFromOsArchStr(ctx context.Context, osArchStr string) (string, string, error)

func IsPowershell

func IsPowershell(shellPath string) bool

func NormalizeConfigPattern

func NormalizeConfigPattern(pattern string) string

func ParseProfiles

func ParseProfiles() []string

func SimpleMessageFromPossibleConnectionError

func SimpleMessageFromPossibleConnectionError(err error) string

func WaveSshConfigUserSettings

func WaveSshConfigUserSettings() *ssh_config.UserSettings

Types

type ConnectionDebugInfo

type ConnectionDebugInfo struct {
	CurrentClient *ssh.Client
	NextOpts      *SSHOpts
	JumpNum       int32
}

type ConnectionError

type ConnectionError struct {
	*ConnectionDebugInfo
	Err error
}

func (ConnectionError) Error

func (ce ConnectionError) Error() string

func (ConnectionError) Unwrap

func (ce ConnectionError) Unwrap() error

type HostKeyAlgorithms

type HostKeyAlgorithms = func(hostWithPort string) (algos []string)

type SSHOpts

type SSHOpts struct {
	SSHHost string `json:"sshhost"`
	SSHUser string `json:"sshuser"`
	SSHPort string `json:"sshport,omitempty"`
}

func ParseOpts

func ParseOpts(input string) (*SSHOpts, error)

func (SSHOpts) String

func (opts SSHOpts) String() string

type UserInputCancelError

type UserInputCancelError struct {
	Err error
}

func (UserInputCancelError) Error

func (uice UserInputCancelError) Error() string

func (UserInputCancelError) Unwrap

func (uice UserInputCancelError) Unwrap() error

Directories

Path Synopsis
fileshare

Jump to

Keyboard shortcuts

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