diff --git a/server/setup/config-paths.ts b/server/setup/config-paths.ts index ecd1a20a6..3cf8f8415 100644 --- a/server/setup/config-paths.ts +++ b/server/setup/config-paths.ts @@ -34,17 +34,7 @@ export const setupDirectories = () => { try { createDirectoryIfNotExist(dir); if (dir === SSH_PATH) { - /* Changing SSH Keys permission to 600 keeping the SSH folder writable */ - spawnSync("find", [ - SSH_PATH, - "-type", - "f", - "-exec", - "chmod", - "600", - "{}", - ";", - ]); + chmodSync(SSH_PATH, "700"); } } catch (error) { console.log(error, " On path: ", dir);