ssh

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PublicKeyFile

func PublicKeyFile(file string) ssh.AuthMethod

func RunSSHNoPwdCMD

func RunSSHNoPwdCMD(logger logr.Logger, cmd string, ipaddr string) (string, string, error)

run shell command

func SSHConnect

func SSHConnect(user, password, host string, port int) (*ssh.Session, *ssh.Client, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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