sshutil

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActivateKeys

func ActivateKeys(profileName string) error

ActivateKeys symlinks ~/.ssh/id_ed25519{,.pub} to the profile's keypair. Switching between gixy-managed profiles is always silent. Only prompts when an unrecognized real file or external symlink is in the way.

func GenerateKeypair

func GenerateKeypair(profileName, comment string) error

GenerateKeypair generates an ed25519 SSH keypair for the given profile. Keys are written to ~/.ssh/gixy/<profileName>/id_ed25519{,.pub}. If keys already exist, the function returns without overwriting them.

func KeyDir

func KeyDir(profileName string) (string, error)

KeyDir returns the directory where SSH keys for the given profile are stored: ~/.ssh/gixy/<profileName>/

Types

This section is empty.

Jump to

Keyboard shortcuts

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