-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
Failure to connect to gitlab.com after initial config #341
Comments
@rachidbch IIRC |
Thank you for your rapid answer and your good work Zaq I'm obviously missing something here. Here were my (wrong it seems) assumptions about the features of lab:
Of course this can only work with an https remote so I went ahead and switched to https remote. By the way at initial configuration, lab asks for the host and the access token but not the username. |
@rachidbch Unfortunately (unlike hub) lab doesn't support this "auto authentication" behavior. In large this is do to this functionality being slightly non-trivial and not needed for my own usecases when I built the proof of concept almost 2 years ago. There hasn't been any additional development to support it since. The prompting for user/pass you are seeing is probably from Alternatively, I could help you find a way to use ssh, if your reasons involve already using an ssh key that you can't use with your gitlab account its possible to use separate ssh keys for separate repos. I don't have an example offhand, but can dig one up. Alternatively, alternatively, I believe GitLab will allow repo authentication over basic with Sorry for the troubles here, I've always expected that someone would have different usecases and want this and it fell over my radar over the last year or so |
Thank you @zaquestion for your in-depth answer. I ended up switching to https remotes using a https://:@gitlab.com/user/repo/...'. This fits perfectly my use I its more secure has less management overhead (No ssh keys to deploy). Thanks for your help and keep the good work! |
Versions:
OS: Ubuntu 18.04
Git: git version 2.18.0 Lab version 0.16.0
Steps to reproduce:
Messages displayed including error :
Config saved to /home/rbc/.config/lab.hcl Updating origin failed to connect to gitlab.com:22: ssh: handshake failed: ssh: unable to authenticate, attempted methods [publickey none], no supported methods remain fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. failed to connect to gitlab.com:22: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. failed to connect to gitlab.com:22: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 2019/10/10 22:54:56 project_create.go:72: All attempts fail: #1: exit status 128 #2: exit status 128 #3: exit status 128
Strangely, the repo is nevertheless created on gitlab but is empty and any subsequent push will fail with the same error.
The text was updated successfully, but these errors were encountered: