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 authored and Joe Ruether committed Jun 3, 2023
1 parent 6c55a6a commit a25f753
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'] = 'ssh'
log.info('identity #%d: %s', index, identity.to_string())
Expand Down

0 comments on commit a25f753

Please sign in to comment.