asyncssh.create_connection(asyncssh.SSHClient, # MySSHClient
encoding=None,
host: '...',
known_hosts: None,
client_keys': ['/home/sir/.ssh/aws.pem'],
username': 'ec2-user'}
)
I get: asyncssh.misc.ProtocolError: Too many authentication failures.
When directly connecting via the ssh command line tool I must provide:
-o IdentitiesOnly=yes -i $HOME/.ssh/aws.pem
However, I only see IdentitiesOnly mentioned in load_keypairs part of the docs:
https://asyncssh.readthedocs.io/en/latest/
Can anyone point me to how IdentitiesOnly can be set?
Thanks.
- Stuart