Documentation ¶ Overview ¶ Package sshconfig implements a small ssh config parser based on the output of `ssh -G`. Index ¶ func Get(ctx context.Context, host, field string) (string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Get ¶ func Get(ctx context.Context, host, field string) (string, error) Get returns the value of a key in the ssh config for a given host. An error is only returned when a key is not found. Note: a field will usually have default values returned, e.g. IdentityFile. Types ¶ This section is empty. Source Files ¶ View all Source files sshconfig.go Click to show internal directories. Click to hide internal directories.