Documentation
¶
Overview ¶
Package sshkey is the ssh key conch reaches machines with, and the step that lets a sandbox in with it. It is shared by conch and conch-sandbox, so both offer the same key and find the one the other made.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultNames = []string{"id_ed25519", "id_ecdsa", "id_rsa"}
DefaultNames are the keys ssh would try by itself, in its own order.
Functions ¶
func Authorize ¶
Authorize readies sandbox id for a login with this computer's key and returns the private key ssh has to offer, or "" when the provider hands out a secret instead. A provider that takes a key through its API is given it; one that lets in the keys registered with the person's account is offered the same key, which its Note says to register. made, when set, hears that conch's key was just created.
func AuthorizesKey ¶
AuthorizesKey says whether a provider that can take a key wants one: a provider described by a file says so in it.
func ConchKey ¶
func ConchKey() string
ConchKey is the private key conch creates for machines when the user has none of their own.
Types ¶
type Key ¶
type Key struct {
Line string // the public key, one line
Path string // its .pub file; the private half is beside it
Made bool // conch's key was created just now
}
Key is a public key to authorize on machines.