From be889cbea523afa398cf7541483618b7f9b93e08 Mon Sep 17 00:00:00 2001 From: Adrian Dvergsdal Date: Mon, 23 Nov 2015 14:02:41 +0100 Subject: [PATCH] Make sure private key is only readable by user --- tests/run | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/run b/tests/run index 3874fe7..6b76a7b 100755 --- a/tests/run +++ b/tests/run @@ -14,6 +14,9 @@ function beforeTest() { docker build --pull=true --tag "$sftpImageName" "$buildDir" fi + # Private key can not be read by others + chmod go-rw "$scriptDir/id_rsa" + rm -rf "$tmpDir" # clean state mkdir "$tmpDir"