rcmtssh

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectToHost

func ConnectToHost(user, host, port string) (client *ssh.Client, session *ssh.Session, err error)

func ParseConnectionString

func ParseConnectionString(cs string) (sshConnectionParameters rcmthost.HostDetails)

Prase this root@192.168.100.133:22 into a struct

func RunRemoteCommandOnRemoteHost

func RunRemoteCommandOnRemoteHost(session *ssh.Session, commandline string) (stdout string, stderr string, exitcode int)

func RunSimpleCommandOnRemoteHost

func RunSimpleCommandOnRemoteHost(session *ssh.Session, commandline string)

func SCP

func SCP(hostDetails rcmthost.HostDetails, sourceFile string, destinationFile string, destinationFileMode string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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