mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +00:00
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 <veiko17@disroot.org>
This commit is contained in:
parent
b372c2e2fa
commit
bd71f9667c
@ -918,6 +918,7 @@ def _get_ssh_command(ip_address, distribution):
|
|||||||
'ssh', '-Y', '-C', '-t', '-i',
|
'ssh', '-Y', '-C', '-t', '-i',
|
||||||
str(public_key), '-o', 'LogLevel=error', '-o',
|
str(public_key), '-o', 'LogLevel=error', '-o',
|
||||||
'StrictHostKeyChecking=no', '-o', 'UserKnownHostsFile=/dev/null',
|
'StrictHostKeyChecking=no', '-o', 'UserKnownHostsFile=/dev/null',
|
||||||
|
'-o', 'IdentitiesOnly=yes',
|
||||||
f'fbx@{ip_address}'
|
f'fbx@{ip_address}'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user