diff --git a/tests/test_ssh.py b/tests/test_ssh.py index 48aab95..07e183b 100644 --- a/tests/test_ssh.py +++ b/tests/test_ssh.py @@ -30,6 +30,7 @@ def jupyter_server(random_port): ] env = os.environ.copy() with tempfile.TemporaryDirectory() as temp_dir: + os.chmod(temp_dir, 0o700) authorized_keys_path = os.path.join(temp_dir, 'authorized_keys') subprocess.check_call(['ssh-keygen', '-f', authorized_keys_path, '-q', '-N', ''])