ssh

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package ssh implements an SSH client for Lagoon.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckStrictHostKey added in v0.30.0

func CheckStrictHostKey(v string) (bool, bool)

func InteractiveKnownHosts added in v0.30.0

func InteractiveKnownHosts(userPath, host string, ignorehost, accept bool) (ssh.HostKeyCallback, []string, error)

add interactive known hosts to reduce confusion with host key errors

func InteractiveSSH

func InteractiveSSH(lagoon map[string]string, sshService string, sshContainer string, config *ssh.ClientConfig) error

InteractiveSSH .

func LogStream added in v0.30.0

func LogStream(config *ssh.ClientConfig, host, port string, argv []string) error

LogStream connects to host:port using the given config, and executes the argv command. It does not request a PTY, and instead just streams the response to the attached terminal. argv should contain a logs=... argument.

func RunSSHCommand

func RunSSHCommand(lagoon map[string]string, sshService string, sshContainer string, command string, config *ssh.ClientConfig) error

RunSSHCommand .

Types

This section is empty.

Jump to

Keyboard shortcuts

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