From 9a46e4d36e87e965979ba7700ce043bfcae6725c Mon Sep 17 00:00:00 2001 From: Ark74 Date: Mon, 26 Apr 2021 22:01:35 -0500 Subject: [PATCH] Fix path for key --- add-jibri-node.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/add-jibri-node.sh b/add-jibri-node.sh index 624c4f0..2ed0dea 100644 --- a/add-jibri-node.sh +++ b/add-jibri-node.sh @@ -437,7 +437,7 @@ sudo su $NJN_USER -c "ssh-keygen -t rsa -f ~/.ssh/id_rsa -b 4096 -o -a 100 -q -N #Workaround for jibri to do cleaning. install -m 0600 -o jibri /home/$NJN_USER/.ssh/id_rsa /home/jibri/jbsync.pem -sudo su jibri -c "ssh-keyscan -t rsa $MAIN_SRV_DOMAIN >> ~/.ssh/known_hosts" +sudo -u jibri ssh-keyscan -t rsa $MAIN_SRV_DOMAIN >> /home/jibri/.ssh/known_hosts echo -e "\n\n##################\nRemote pass: $MJS_USER_PASS\n################## \n\n" ssh-keyscan -t rsa $MAIN_SRV_DOMAIN >> ~/.ssh/known_hosts