Skip to content

Commit

Permalink
Fix issue with SSH missing a keyflag in an identity call
Browse files Browse the repository at this point in the history
  • Loading branch information
jrruethe committed Sep 30, 2021
1 parent 82631aa commit 61dee85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libagent/ssh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

from .. import device, formats, server, util
from . import client, protocol
from ..formats import KeyFlags

log = logging.getLogger(__name__)

Expand Down Expand Up @@ -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'] = u'ssh'
log.info('identity #%d: %s', index, identity.to_string())
Expand Down

0 comments on commit 61dee85

Please sign in to comment.