Cloned UserKey struct to config so it can be documented. Added examples. (#149)

This commit is contained in:
Fabian Kammel 2022-05-17 10:52:37 +02:00 committed by GitHub
parent b905c28515
commit cfad36720b
4 changed files with 152 additions and 48 deletions

View file

@ -12,8 +12,8 @@ import (
// UserKey describes an user that should be created with a corresponding public SSH key.
type UserKey struct {
Username string `yaml:"user"`
PublicKey string `yaml:"pubkey"`
Username string
PublicKey string
}
// SSHAccess reads ssh public keys from a channel, creates the specified users if required and writes the public keys to the users authorized_keys file.