docs: Fixing useradd and rsync (closes #1)

This commit is contained in:
Jarkko Toivanen 2025-01-25 18:59:01 +02:00
parent c1317d7292
commit 201586399c

View file

@ -16,7 +16,7 @@
Install required stuff and things on Debian based system Install required stuff and things on Debian based system
$ sudo apt-get install rsync $ sudo apt-get install rsync
Make a user to have limited access Make a user to have limited access
$ sudo useradd adduser --home /varasto/verkkojuuri --system verkkojuuri --shell /bin/sh $ sudo useradd adduser --home /varasto/verkkojuuri --system --shell /bin/sh verkkojuuri
$ cd /varasto/verkkojuuri $ cd /varasto/verkkojuuri
$ sudo -u verkkojuuri ssh-keygen $ sudo -u verkkojuuri ssh-keygen
$ sudo -u verkkojuuri cat .ssh/id_rsa $ sudo -u verkkojuuri cat .ssh/id_rsa
@ -47,7 +47,9 @@ secrets. In practise you'll make it execute
``` console ``` console
$ mkdocs build $ mkdocs build
$ rsync -e "ssh -rclthv --exclude --delete-after .git site/ verkkojuuri@jakest.us:site $ rsync -rclthv --exclude --delete-after .git site/ verkkojuuri@jakest.us:site
probs needs flags to allow skipping host verification key or maybe install them
using action variables
``` ```
Oh you need it more detailed, okay. Oh you need it more detailed, okay.