ssh

package
v0.49.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InteractiveHostKeyCallback

func InteractiveHostKeyCallback(knownHostsFilePath string) (ssh.HostKeyCallback, error)

InteractiveHostKeyCallback verifying the host key against known_hosts and adding the key if the user replies accordingly.

func NewCommand

func NewCommand(clientConfig clientcmd.ClientConfig) *cobra.Command

func TestSSH added in v0.49.0

func TestSSH(t *testing.T)

Types

type SSH

type SSH struct {
	// contains filtered or unexported fields
}

func (*SSH) Run

func (o *SSH) Run(cmd *cobra.Command, args []string) error

type SSHOptions added in v0.48.1

type SSHOptions struct {
	WrapLocalSSH              bool
	SshPort                   int
	SshUsername               string
	IdentityFilePath          string
	IdentityFilePathProvided  bool
	KnownHostsFilePath        string
	KnownHostsFilePathDefault string
}

Jump to

Keyboard shortcuts

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