From 41d1d674730d3475c3d840720003612eb4ed54d0 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Fri, 25 Oct 2024 19:15:05 -0700 Subject: [PATCH] chmod directory containing keys before trying to test --- tests/test_ssh.py | 1 + 1 file changed, 1 insertion(+) 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', ''])