From a25f753cf6569a1cd6c19b324ea64182b16ed67e Mon Sep 17 00:00:00 2001 From: Joe Ruether Date: Wed, 29 Sep 2021 20:34:59 -0500 Subject: [PATCH] Fix issue with SSH missing a keyflag in an identity call --- libagent/ssh/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libagent/ssh/__init__.py b/libagent/ssh/__init__.py index 5d6734ea..8eb9f692 100644 --- a/libagent/ssh/__init__.py +++ b/libagent/ssh/__init__.py @@ -17,6 +17,7 @@ from .. import device, formats, server, util from . import client, protocol +from ..formats import KeyFlags log = logging.getLogger(__name__) @@ -267,7 +268,7 @@ def main(device_type): identities = list(parse_config(contents)) else: identities = [device.interface.Identity( - identity_str=args.identity, curve_name=args.ecdsa_curve_name)] + identity_str=args.identity, curve_name=args.ecdsa_curve_name, keyflag=KeyFlags.CERTIFY_AND_SIGN)] for index, identity in enumerate(identities): identity.identity_dict['proto'] = 'ssh' log.info('identity #%d: %s', index, identity.to_string())