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
Updating repository Git - Ask password #363
Comments
What is the log output? |
I have this on shell :
And on task log
If on shell i try to enter password, i have an access denied in task log |
Sure the identity of the inventory is set correctly in semaphore? You can look in the database. |
Thank you for your replie. Yes, secret field in access_key table match with private key and project_id is the good project. I have deleted database and all config files et run new setup, but same problem. |
Hmm it should be working.. When you run Is the |
Result of -v (since i reinstall semaphore, key is acc_key_1) :
|
Content of file seems to be ok, but its begin by : -----BEGIN RSA PRIVATE KEY----- and ending by |
That's ok. SSH seems to be using the correct key. Would you try using the same or new key with another host? It is very weird the connection doesn't work! Another problem could be the username ansible uses to log into the server. Do you set this in the playbook or inventory? If the user other than |
Thank you. I don't understand, i have put this key on my ssh folder (windows - powershell) and i can clone project where we have pull ours playbooks @ git@git.xxx.com without passphrase. User ansible is set on playbook for connections to server we manage with ansible. I have created an specific user for acces to git and same problem ! |
Ok but then test with the same user. Try This is what semaphore (ansible) is trying to do and is failing. Ultimately try to reproduce the same command semaphore is launching:
|
I think there might be some confusion. Semaphore uses 2 keys (you can reuse one).
|
Ok, thank you for this information. I try ssh -T -i access_key_1 ansible@git.xxx.com (ansible is the user we have created on git and have right on project) and i must enter phassphrase. If i understand your comment, despite the fact i configure in playbook repositorie GIT@git.xxx.com semaphore, try to connect with ansible@git.xxx.com (ansible is the user we set up in default user in ansible.cfg)? |
you can clone the playbook from Example playbook:
|
Maybe the user Check the logs on the server if it says anything about the key. |
Ok i understand. But all users in our company connect to git with git@git.xxx.com . Public key is definied on each git's user account. Exemple : i'am master of semaphore project, my public key is configured on my git account (ex : neneow) but i can only pull/push with git@git.xxx.com |
I check auth.log on git server When i make : ssh -T -i access_key_1 git@git.xxx.com from semaphore server on auth.log i have : And when i ran task from semaphore : pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=xxx.xxx.xxx.xxx user=git |
Hmm there is something wrong with the ssh key or configuration. Might you try running the playbook manually without semaphore? |
Thank you for spending time and yours responses. So i try this : Install Semaphore on my W10. Put in key store this famous private key. Ran task et same error, couldn't clone our git : I had copy access_key_1generate in c:\ to id_rsa in c:\users\myuser.ssh and ran git clone (git@git.xxx.com:project/semaphore.git) and project is cloning without ask password ... So access_key_1 is well-formed and private key is correct. Really don't understand what's appening. update |
I see, that could indeed be the issue. Do you put the full |
Ok, i think have found problem, and is describe on your wiki .... I had installed a fresh ubuntu Xenial and git paquet in version 1:2.7.4. With same private key no passphrase needed. All my test wase made on Ubuntu Trusty with git version 1:1.9.1-1 @matejkramny I had just test on WIndows so its an other problem. In UI-> system information, path for Playbook seems to be ok. Thank you for your help |
What was the problem? It should be working on windows |
doesn't know, its possible my git version on windows is too old as on my
first linux distribution. I will try to update git on Windows.
But all is ok on my fresh install. I try to compile from sources for
testing LDAP (#352) and notification who seems not working.
2017-06-06 12:00 GMT+02:00 Matej Kramny <notifications@github.com>:
… What was the problem? It should be working on windows
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#363 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Abldan1feAehopXIjhgfwFD6aoIETo3Cks5sBSMzgaJpZM4NlROc>
.
|
I had update git version on windows (2.5.3 -> 2.13.0). Problem always present, semaphore dont find access_key_1 File is present in c:\semaphore In config file, tmp_path value is : "tmp_path": "c:\semaphore", |
While running task, when Updating repository, the task don't progress. On shell, i can see process wait for password. Private key register in Key Store don't contain passphrase.
I run ssh -T -i access_key_4 git@git.xxxx.com and i am authentificated without password.
I've tried an other private key and problem is similar.
Thank you.
The text was updated successfully, but these errors were encountered: