Skip to content

Commit

Permalink
T2405: Remove commit-archive.key support
Browse files Browse the repository at this point in the history
  • Loading branch information
yunzheng committed Nov 16, 2023
1 parent d09ed94 commit 529216a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions python/vyos/remote.py
Expand Up @@ -369,17 +369,6 @@ def upload(self, location: str):
# build ssh command for git
ssh_command = ["ssh"]

# Try to use /config/auth/commit-archive.key as SSH identity
# We copy over the key so we can control the permissions
try:
path_privatekey = Path(directory) / "private.key"
path_privatekey.write_bytes(
Path("/config/auth/commit-archive.key").read_bytes()
)
ssh_command += ["-i", str(path_privatekey)]
except Exception:
pass

# if we are not interactive, we use StrictHostKeyChecking=yes to avoid any prompts
if not sys.stdout.isatty():
ssh_command += ["-o", "StrictHostKeyChecking=yes"]
Expand Down

0 comments on commit 529216a

Please sign in to comment.