Skip to content

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

Open

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions