Documentation ¶
Index ¶
- func CommonOpts(useDotSSH bool) ([]string, error)
- func DetectOpenSSHVersion() semver.Version
- func ParseOpenSSHVersion(version []byte) *semver.Version
- func SSHArgsFromOpts(opts []string) []string
- func SSHOpts(instDir string, useDotSSH, forwardAgent bool) ([]string, error)
- func SSHRemoteUser(macaddr string) string
- type PubKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommonOpts ¶
CommonOpts returns ssh option key-value pairs like {"IdentityFile=/path/to/id_foo"}. The result may contain different values with the same key.
The result always contains the IdentityFile option. The result never contains the Port option.
func DetectOpenSSHVersion ¶
func ParseOpenSSHVersion ¶
func SSHArgsFromOpts ¶
SSHArgsFromOpts returns ssh args from opts. The result always contains {"-F", "/dev/null} in additon to {"-o", "KEY=VALUE", ...}.
func SSHOpts ¶
SSHOpts adds the following options to CommonOptions: User, ControlMaster, ControlPath, ControlPersist
func SSHRemoteUser ¶
Types ¶
type PubKey ¶
func DefaultPubKeys ¶
DefaultPubKeys returns the public key from $LIMA_HOME/_config/user.pub. The key will be created if it does not yet exist.
When loadDotSSH is true, ~/.ssh/*.pub will be appended to make the VM accessible without specifying an identity explicitly.