diff --git a/tools/python-integration-tests/ssh.py b/tools/python-integration-tests/ssh.py index 913dced84a..f075a8c1d5 100644 --- a/tools/python-integration-tests/ssh.py +++ b/tools/python-integration-tests/ssh.py @@ -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