$
, strip out $
as this character is not part of the commandcat << "EOF"
, select all lines at once (from cat << "EOF"
to EOF
inclusively) as they are part of the same (single) commandborg
SSH key pair (on computer)When asked for file in which to save key, enter borg
.
When asked for passphrase, use output from openssl rand -base64 24
(and store passphrase in password manager).
borg-append-only
SSH key pair (on computer)When asked for file in which to save key, enter borg-append-only
.
When asked for passphrase, leave field empty for no passphrase.
Heads-up: replace
~/.ssh/server
with path to private key andserver-admin@185.112.147.115
with server or Raspberry Pi SSH destination.
When asked, enter root password.
borg
userWhen asked for password, use output from openssl rand -base64 24
(and store password in password manager).
All other fields are optional, press enter to skip them and then press Y.
.ssh
directory/home/borg/.ssh/authorized_keys
using heredoc generated at step 2/home/borg/.ssh
chown -R borg:borg /home/borg/.ssh
π