ssh

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSshAgentPostStartEvent

func AddSshAgentPostStartEvent(spec *v1alpha2.DevWorkspaceTemplateSpec) error

AddSshAgentPostStartEvent Start ssh-agent and add the default ssh key to it, if the ssh key has a passphrase. Initialise the ssh-agent session env variables in the user .bashrc file.

func NeedsSSHPostStartEvent added in v0.31.2

func NeedsSSHPostStartEvent(api sync.ClusterAPI, namespace string) (bool, error)

Determines whether an SSH key with a passphrase is provided for the namespace where the workspace exists. If an SSH key with a passphrase is used, then the SSH Agent Post Start event is needed for it to automatically be used by the workspace's SSH agent. If no SSH key is provided, or the SSH key does not provide a passphrase, then the SSH Agent Post Start event is not required.

Types

This section is empty.

Jump to

Keyboard shortcuts

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