Skip to content

Commit

Permalink
chmod directory containing keys before trying to test
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Oct 26, 2024
1 parent faf6495 commit 41d1d67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -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', ''])

Expand Down

0 comments on commit 41d1d67

Please sign in to comment.