Documentation
¶
Index ¶
Constants ¶
View Source
const ( SSHConfigFile = ".ssh/config" MultiKeyConfigFile = ".ssh/multikey.conf" IncludeDirective = "Include ~/.ssh/multikey.conf" )
Variables ¶
This section is empty.
Functions ¶
func CopyToClipboard ¶
CopyToClipboard copies text to the system clipboard
func GenerateKey ¶
GenerateKey generates a new ED25519 SSH key pair
func GetPublicKey ¶
GetPublicKey extracts the public key from a private key file
func TestConnection ¶
TestConnection tests SSH connectivity to GitHub
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles SSH configuration operations
func (*Manager) EnsureInclude ¶
EnsureInclude ensures the SSH config includes the multikey config file
func (*Manager) GenerateConfig ¶
GenerateConfig generates the multikey SSH config from profiles
func (*Manager) GetMultiKeyConfigPath ¶
GetMultiKeyConfigPath returns the path to the multikey SSH config file
Click to show internal directories.
Click to hide internal directories.