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 connecting with wrong username in 2.9.70 #1964

Closed
guyke01 opened this issue Apr 22, 2024 · 5 comments
Closed

SSH connecting with wrong username in 2.9.70 #1964

guyke01 opened this issue Apr 22, 2024 · 5 comments
Assignees

Comments

@guyke01
Copy link

guyke01 commented Apr 22, 2024

With version 2.9.70 there seems to be a issue with connection to hosts over SSH. I'm using a SSH key with the defined username but Semaphore is connecting to machines with the username [email protected]

I've updated the SSH key and username that is stored in the keystore, but it keeps using the semaphore username. This issue is since i've installed v2.9.70.

@guyke01 guyke01 changed the title SSH connecting with wrong username SSH connecting with wrong username in 2.9.70 Apr 22, 2024
@photoncody
Copy link

I am also having this issue. I'm rolling back my version of semaphore to see if that fixes the issue or not.

@photoncody
Copy link

Confirmed. Rolling back to v2.9.64, this issue is resolved.

@fiftin fiftin self-assigned this Apr 23, 2024
@neocult-de
Copy link

neocult-de commented Apr 23, 2024

Can confirm the issue. Since the update to v2.9.70. I dont get the same issue for all servers. But there seem to be a parsing error in parsing the values to pass to the command line. I have attached the error but masked SERVERNAME and USERNAME which be the normal login and name of the remote server. (Rolling back to v2.9.64 the issue does not occur)

Couldn´t make out a pattern which servers have a parsing error or not.

fatal: [SERVERNAME]: UNREACHABLE! => {"changed": false, "msg": "Failed to create temporary directory. In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in \"/tmp\", for more error information use -vvv. Failed command was: ( umask 77 && mkdir -p \" echo Please login as the user "USERNAME" rather than the user "root"./.ansible/tmp \"&& mkdir \" echo Please login as the user "USERNAME" rather than the user "root"./.ansible/tmp/ansible-tmp-1713888161.0375252-1432-86717521816157 \" && echo ansible-tmp-1713888161.0375252-1432-86717521816157=\" echo Please login as the user "USERNAME" rather than the user "root"./.ansible/tmp/ansible-tmp-1713888161.0375252-1432-86717521816157 \" ), exited with result 142, stdout output: Please login as the user \"USERNAME\" rather than the user \"root\".\n\n", "unreachable": true}

@fiftin
Copy link
Collaborator

fiftin commented Apr 29, 2024

Hi @guyke01 fixed in 2.9.75. Thank you!

@fiftin fiftin closed this as completed Apr 29, 2024
@guyke01
Copy link
Author

guyke01 commented Apr 29, 2024

Thanks @fiftin! Tested it yesterday and it works again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

4 participants