From bd71f9667c5709494554282833d4089fd449cecb Mon Sep 17 00:00:00 2001 From: Cosmin Humeniuc Date: Sat, 6 Aug 2022 16:36:55 +0300 Subject: [PATCH] container: Add IdentitiesOnly option to SSH - Invoke ssh with the 'IdentitiesOnly` option enabled in order to force the use of the configured authentication identity. This is needed in situations where ssh-agent offers many different identities. Closes #2243 Reviewed-by: Veiko Aasa --- container | 1 + 1 file changed, 1 insertion(+) diff --git a/container b/container index ce209a89e..de30e925d 100755 --- a/container +++ b/container @@ -918,6 +918,7 @@ def _get_ssh_command(ip_address, distribution): 'ssh', '-Y', '-C', '-t', '-i', str(public_key), '-o', 'LogLevel=error', '-o', 'StrictHostKeyChecking=no', '-o', 'UserKnownHostsFile=/dev/null', + '-o', 'IdentitiesOnly=yes', f'fbx@{ip_address}' ]