From 7c7c50927cd2a0edb9de5480de6a44d7f266c204 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sun, 26 May 2024 12:59:04 +0200 Subject: [PATCH] simpler post_install --- doc/POST_INSTALL.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/POST_INSTALL.md b/doc/POST_INSTALL.md index d2225ab..d08142e 100644 --- a/doc/POST_INSTALL.md +++ b/doc/POST_INSTALL.md @@ -4,12 +4,12 @@ __PUBLIC_KEY__ Do so by running those commands on __SERVER__ with user __SSH_USER__: +``` mkdir ~/.ssh 2>/dev/null touch ~/.ssh/authorized_keys chmod u=rw,go= ~/.ssh/authorized_keys -cat << EOPKEY >> ~/.ssh/authorized_keys -__PUBLIC_KEY__ -EOPKEY +echo "__PUBLIC_KEY__" >> ~/.ssh/authorized_keys +``` Also make sure __BACKUP_PATH__ exists and is writable by __SSH_USER__