sshutils

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSCPClient

func NewSCPClient(client *ssh.Client) (*scpClient, error)

Types

type SSHSession

type SSHSession struct {
	Stdout io.Reader
	Stdin  io.Writer
	Stderr io.Reader
	// contains filtered or unexported fields
}

func NewSSHSession

func NewSSHSession(session *ssh.Session, hookCmd string, hookStdout bool) *SSHSession

New Session

func (*SSHSession) Close

func (s *SSHSession) Close() error

close the session

func (*SSHSession) PipeExec

func (s *SSHSession) PipeExec(cmd string) error

pipe exec

func (*SSHSession) Ready

func (s *SSHSession) Ready() <-chan int

func (*SSHSession) ShellDone

func (s *SSHSession) ShellDone() <-chan int

func (*SSHSession) Terminal

func (s *SSHSession) Terminal() error

open a interactive shell

func (*SSHSession) TerminalWithKeepAlive

func (s *SSHSession) TerminalWithKeepAlive(interval time.Duration) error

open a interactive shell with keepalive

Jump to

Keyboard shortcuts

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