_ssh

package
v0.0.0-...-00a9ec4 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackupRemoteDir

func BackupRemoteDir(config cmd.Config, remoteDir string, tmpDir string, download bool) (string, error)

func ChangePassword

func ChangePassword(client *ssh.Client, username string, newPassword string) error

func DeleteRemoteDirContent

func DeleteRemoteDirContent(config cmd.Config, dir string) error

func EmergencyBackupAndUpload

func EmergencyBackupAndUpload(config cmd.Config, localDir, targetDir, tmpDir string) error

func EstablishSSHConnection

func EstablishSSHConnection(config cmd.Config) (*ssh.Client, error)

func TestSSHConnection

func TestSSHConnection(config cmd.Config) error

func TestSSHConnectionAndChangePass

func TestSSHConnectionAndChangePass(config cmd.Config) error

func UploadAndExtract

func UploadAndExtract(config cmd.Config, filePattern, targetDir, tmpDir string) error

func UploadAndRunPatch

func UploadAndRunPatch(config cmd.Config, filePattern, targetDir, tmpDir string) error

func UploadEdr

func UploadEdr(config cmd.Config, localDir, remoteDir, command string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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