Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ssh command fails when ssh agent try many identity files #144

Open
wnasich opened this issue Jun 21, 2022 · 0 comments
Open

Ssh command fails when ssh agent try many identity files #144

wnasich opened this issue Jun 21, 2022 · 0 comments

Comments

@wnasich
Copy link

wnasich commented Jun 21, 2022

Description

Theeb ssh command attaches the identity file related to your EB instance, however ssh client not only offer the identity file specified with ssh param -i but also all other identity files that ssh agent has access on your machine. It causes a rejection with message "Too many authentication failures", when ssh agent presents to aws instance those identify files before the one ssh command specify with the param -i

Steps to reproduce

This can be reproduced by issuing a ssh command to your EB instance with more than 6 identify files in your ~/.ssh folder

Observed result

A rejection message : "Too many authentication failures" as below:

INFO: Running ssh -i file.pem ec2-user@--.--.--.--
Received disconnect from --.--.--.-- port 22:2: Too many authentication failures
Disconnected from --.--.--.-- port 22

Expected result

A successful ssh terminal prompt into EB instance

Additional environment details

  1. OS: Linux
  2. EBCLI version: 3.20.3
NihalM99 pushed a commit that referenced this issue Aug 22, 2023
NihalM99 added a commit that referenced this issue Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant