Documentation ¶
Index ¶
- Constants
- func GetConfig() (*ssh_config.Config, error)
- func IncludeBunnyshellConfig() error
- func NewKV(paramName, paramValue string) *ssh_config.KV
- func PrivateKeyFile(file string) ssh.AuthMethod
- func RemoveHost(cfg *ssh_config.Config, hostname string) error
- func SaveConfig(cfg *ssh_config.Config) error
- type Endpoint
- type SSHTerminal
- type SSHTunnel
Constants ¶
View Source
const (
SSHAuthSockEnvVar = "SSH_AUTH_SOCK"
)
Variables ¶
This section is empty.
Functions ¶
func GetConfig ¶
func GetConfig() (*ssh_config.Config, error)
func IncludeBunnyshellConfig ¶ added in v0.2.1
func IncludeBunnyshellConfig() error
func NewKV ¶
func NewKV(paramName, paramValue string) *ssh_config.KV
func PrivateKeyFile ¶
func PrivateKeyFile(file string) ssh.AuthMethod
func RemoveHost ¶
func RemoveHost(cfg *ssh_config.Config, hostname string) error
func SaveConfig ¶
func SaveConfig(cfg *ssh_config.Config) error
Types ¶
type Endpoint ¶
func NewEndpoint ¶
type SSHTerminal ¶
type SSHTerminal struct { Server *Endpoint Config *ssh.ClientConfig ReadyChannel chan bool }
func NewSSHTerminal ¶
func NewSSHTerminal(host string, port int, auth ssh.AuthMethod) *SSHTerminal
func (*SSHTerminal) Start ¶
func (sshTerminal *SSHTerminal) Start() error
Click to show internal directories.
Click to hide internal directories.