asyncssh.misc.ProtocolError: Too many authentication failures

5 views
Skip to first unread message

Stuart Reynolds

unread,
Jun 19, 2024, 8:19:53 PM6/19/24
to asyncssh-users
After calling:

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


Reply all
Reply to author
Forward
0 new messages