Stop ssh from asking for a password on the terminal.

Auth has to work through SSH keys always.
ogrepository-fixes
Vadim vtroshchinskiy 2025-06-24 16:29:13 +02:00
parent ac280fbdce
commit 6a904ee7eb
1 changed files with 5 additions and 0 deletions

View File

@ -187,6 +187,11 @@ class OpengnsysGitLibrary:
self.logger.setLevel(logging.DEBUG)
self.logger.debug(f"Initializing. Cache = {require_cache}, ntfs = {ntfs_implementation}")
self.logger.debug("Ensuring SSH can't ask for passwords on the console")
os.environ["SSH_ASKPASS_REQUIRE"] = "force"
os.environ["SSH_ASKPASS"] = "/bin/false"
self.fs = FilesystemLibrary(ntfs_implementation = ntfs_implementation)
self.disk = DiskLibrary()
#self.ntfs = NTFSLibrary()