ssh

package
v0.0.0-...-e161612 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPort

func CheckPort(port int) (bool, string, error)

CheckPort checks if the port is occupied and returns true/false and also process name

func GenerateSSHConfigFile

func GenerateSSHConfigFile(app *config.Atun) (string, error)

func GetPublicKey

func GetPublicKey(path string) (string, error)

GetPublicKey gets the public key from the private key

func GetRunningTunnels

func GetRunningTunnels(c *config.Atun) ([]config.Config, error)

func GetSSHTunnelStatus

func GetSSHTunnelStatus(app *config.Atun) (bool, [][]string, error)

func GetSSMPluginStatus

func GetSSMPluginStatus(app *config.Atun) (bool, error)

func StartSSHTunnel

func StartSSHTunnel(app *config.Atun) error

func StopSSHTunnel

func StopSSHTunnel(app *config.Atun) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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