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_retry: attempt: 3, ssh return code is 255. #14738

Open
iliuta opened this issue Aug 8, 2024 · 0 comments
Open

ssh_retry: attempt: 3, ssh return code is 255. #14738

iliuta opened this issue Aug 8, 2024 · 0 comments

Comments

@iliuta
Copy link

iliuta commented Aug 8, 2024

Describe the bug

I have an algovpn EC2 machine. All fine except when I want to add a user after a while (weeks, maybe months).

To Reproduce

Steps to reproduce the behavior:

 ./algo update-users -vv
 
 ...
PLAY [User management] ********************************************************************************************************************************************************************************************
<18.202.x.x> ssh_retry: attempt: 1, ssh return code is 255. cmd ([b'ssh', b'-o', b'ControlMaster=auto', b'-o', b'ControlPersist=60s', b'-o', b'UserKnownHostsFile=/dev/null', b'-o', b'ConnectTimeout=30', b'-o', b'ConnectionAttempts=30', b'-o', b'IdentitiesOnly=yes', b'-o', b'StrictHostKeyChecking=no', b'-o', b'Port=4160', b'-o', b'IdentityFile="configs/algo.pem"', b'-o', b'KbdInteractiveAuthentication=no', b'-o', b'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', b'-o', b'PasswordAuthentication=no', b'-o', b'User="algo"', b'-o', b'ConnectTimeout=60', b'-o', b'ControlPath="/Users/az02277-dev/.ansible/cp/8c9874e8e4"', b'18.202.x.x', b'/bin/sh -c \'sudo -H -S -n  -u root /bin/sh -c \'"\'"\'echo BECOME-SUCCESS-anqbiwkboqubjmiywohefbzzmcjmiujx ; /usr/bin/python3\'"\'"\' && sleep 0\'']...), pausing for 0 seconds

Expected behavior

The script should not be stuck and add the new users from the config file.
Additional context

Add any other context about the problem here.

Full log

PUT THE OUTPUT HERE
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