Skip to content

Failure to connect to gitlab.com after initial config #341

Closed
@rachidbch

Description

@rachidbch

Versions:
OS: Ubuntu 18.04
Git: git version 2.18.0 Lab version 0.16.0

Steps to reproduce:

  1. Create 'myproject' directory containing only a dummy README.md file
  2. $ git init
  3. $ lab project create --private (as default --internal is refused by gitlab)
  4. Let default host (https://gitlab.com)
  5. Paste Access Token created on https://gitlab.com/profile/personal_access_tokens
  6. $ lab push

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions