Documentation
¶
Overview ¶
Package sshconfig provides a way to work with the ssh user config file.
Package sshconfig provides a way to work with the ssh user config file.
Index ¶
- func BackupSSHConfig(path string) error
- func GetHostInfo(db database.DataStore, hostname, host string) ([]string, error)
- func ImportConf(ctx context.Context, db database.DataStore, env env.Environment) error
- func WriteConf(ctx context.Context, db database.DataStore, env env.Environment) error
- func WriteNewConfig(db database.DataStore, hostname, path string) error
- func WriteToDB(db database.DataStore, hostname string, entry *sshcfg.SSHHost) error
- type SSHHosts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackupSSHConfig ¶
BackupSSHConfig backs up any SSH config file that currently exists.
func GetHostInfo ¶
GetHostInfo returns the information about a SSH entry.
func ImportConf ¶
ImportConf reads in the current $HOME/.ssh/config and stores the contents in the DB.
func WriteNewConfig ¶
WriteNewConfig writes out a new SSH user config file.
Types ¶
Click to show internal directories.
Click to hide internal directories.