fix: set correct perms for ssh key files

This commit is contained in:
Jose Diaz-Gonzalez committed 2020-06-19 22:01:12 -04:00
1 parent ee083eb3c3
commit 2919415d7e
1 file changed
+2 -1
+2 -1
View File
@@ -55,7 +55,8 @@ endif
mkdir -p /root/.ssh
rm -f /root/.ssh/dokku_test_rsa*
echo -e "y\n" | ssh-keygen -f /root/.ssh/dokku_test_rsa -t rsa -N ''
chmod 600 /root/.ssh/dokku_test_rsa*
chmod 600 /root/.ssh/dokku_test_rsa
chmod 644 /root/.ssh/dokku_test_rsa.pub
@echo "-----> Setting up ssh config..."
ifneq ($(shell ls /root/.ssh/config >/dev/null 2>&1 ; echo $$?),0)