diff options
author | Daniel F. Dickinson <[email protected]> | 2020-09-08 16:16:07 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2020-09-08 21:16:07 +0100 |
commit | c1a7dae113ce943abe8bf5d5ab36fb7aac829fd2 (patch) | |
tree | 117a02dea1db96a327456dd1cc7b3f974c345b57 /README.md | |
parent | d6207a620a10ba0ec25f95a637d3fdd272b47e84 (diff) |
Enable adding SSH pubkey and setting pubkey only (#380)
This commit add the ability to specify an SSH public key as well as the
option to disable password authentication and only allow public key
authentication for SSH.
Signed-off-by: Daniel F. Dickinson <[email protected]>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -130,6 +130,18 @@ The following environment variables are supported: Setting to `1` will enable ssh server for remote log in. Note that if you are using a common password such as the defaults there is a high risk of attackers taking over you Raspberry Pi. + * `PUBKEY_SSH_FIRST_USER` (Default: unset) + + Setting this to a value will make that value the contents of the FIRST_USER_NAME's ~/.ssh/authorized_keys. Obviously the value should + therefore be a valid authorized_keys file. Note that this does not + automatically enable SSH. + + * `PUBKEY_ONLY_SSH` (Default: `0`) + + * Setting to `1` will disable password authentication for SSH and enable + public key authentication. Note that if SSH is not enabled this will take + effect when SSH becomes enabled. + * `STAGE_LIST` (Default: `stage*`) If set, then instead of working through the numeric stages in order, this list will be followed. For example setting to `"stage0 stage1 mystage stage2"` will run the contents of `mystage` before stage2. Note that quotes are needed around the list. An absolute or relative path can be given for stages outside the pi-gen directory. |