mirror of
https://github.com/atmoz/sftp.git
synced 2024-11-17 12:51:33 -05:00
Make sure private key is only readable by user
This commit is contained in:
parent
d7c9115796
commit
be889cbea5
1 changed files with 3 additions and 0 deletions
|
@ -14,6 +14,9 @@ function beforeTest() {
|
||||||
docker build --pull=true --tag "$sftpImageName" "$buildDir"
|
docker build --pull=true --tag "$sftpImageName" "$buildDir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Private key can not be read by others
|
||||||
|
chmod go-rw "$scriptDir/id_rsa"
|
||||||
|
|
||||||
rm -rf "$tmpDir" # clean state
|
rm -rf "$tmpDir" # clean state
|
||||||
mkdir "$tmpDir"
|
mkdir "$tmpDir"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue