update README to use package config for authorized keys
Now that the host key is created automatically, this allows using breakglass without ever creating or modifying a permanent partition.
This commit is contained in:
parent
9bea6256b0
commit
77705dbe49
25
README.md
25
README.md
@ -15,7 +15,21 @@ started via the gokrazy web interface.
|
||||
|
||||
## Installation
|
||||
|
||||
Add the `github.com/gokrazy/breakglass` package to your `gokr-packer`
|
||||
Please see https://gokrazy.org/quickstart/ if you’re unfamiliar with gokrazy.
|
||||
|
||||
First, install your SSH public key(s) as authorized via [package
|
||||
config](https://gokrazy.org/userguide/package-config/) for the
|
||||
`github.com/gokrazy/breakglass` package:
|
||||
|
||||
```
|
||||
mkdir -p extrafiles/github.com/gokrazy/breakglass/etc/
|
||||
cat ~/.ssh/id_*.pub extrafiles/github.com/gokrazy/breakglass/etc/breakglass.authorized_keys
|
||||
|
||||
mkdir -p flags/github.com/gokrazy/breakglass/
|
||||
echo '-authorized_keys=/etc/breakglass.authorized_keys' > flags/github.com/gokrazy/breakglass/flags.txt
|
||||
```
|
||||
|
||||
Then, add the `github.com/gokrazy/breakglass` package to your `gokr-packer`
|
||||
command, e.g.:
|
||||
|
||||
```
|
||||
@ -25,15 +39,6 @@ gokr-packer -overwrite=/dev/sdx \
|
||||
github.com/gokrazy/breakglass
|
||||
```
|
||||
|
||||
On the permanent file system of your gokrazy installation, create a
|
||||
host key and an authorized keys file. Assuming you mounted the
|
||||
permanent file system at `/media/sdx4`:
|
||||
|
||||
```
|
||||
sudo ssh-keygen -N '' -t ed25519 -f /media/sdx4/breakglass.host_key
|
||||
sudo install -m 600 ~/.ssh/id_*.pub /media/sdx4/breakglass.authorized_keys
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Be sure to install the convenience SSH wrapper tool on the host:
|
||||
|
Loading…
x
Reference in New Issue
Block a user