ssh: fix identity stringification

This commit is contained in:
Roman Zeyde
2017-10-09 16:24:11 +03:00
parent 51b297e93b
commit e4fdca08e5

View File

@@ -205,7 +205,7 @@ def main(device_type):
identity_str=args.identity, curve_name=args.ecdsa_curve_name)]
for index, identity in enumerate(identities):
identity.identity_dict['proto'] = u'ssh'
log.info('identity #%d: %s', index, identity)
log.info('identity #%d: %s', index, identity.to_string())
if args.connect:
command = ['ssh'] + ssh_args(args.identity) + args.command