shell

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSH

type SSH struct {
	// Username is the username provided to sign onto an SSH session.
	Username string

	// Password is the username provided to sign onto an SSH session.
	Password string

	// Host is the username provided to sign onto an SSH session.
	Hostname string
	// contains filtered or unexported fields
}

SSH is an object which runs a single SSH session for a given user.

func (*SSH) CreateSession

func (s *SSH) CreateSession() error

CreateSession creates all the necessary components to begin an SSH session with a remote server.

func (*SSH) StartSession

func (s *SSH) StartSession() error

StartSession uses the SSH client and session to begin serving input and outputs from the user to the remote server and back.

Jump to

Keyboard shortcuts

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