Skip to content

Commit

Permalink
Merge pull request #3363 from mr0re1/ssh_key_expiration
Browse files Browse the repository at this point in the history
Add TTL to SSH key
  • Loading branch information
mr0re1 authored Dec 7, 2024
2 parents c519141 + 182641e commit 3548189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/python-integration-tests/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def get_keypath(self):
key_path = os.path.expanduser("~/.ssh/google_compute_engine")
os.makedirs(os.path.dirname(key_path), exist_ok=True)

cmd = ["ssh-keygen", "-t", "rsa", "-f", key_path, "-N", ""]
cmd = ["ssh-keygen", "-t", "rsa", "--ttl", "1h", "-f", key_path, "-N", ""]
subprocess.run(cmd, capture_output=True, text=True, check=True)

# Add the public key to OS Login
Expand Down

0 comments on commit 3548189

Please sign in to comment.