gitless icon indicating copy to clipboard operation
gitless copied to clipboard

Publish failing to use SSH key

Open shdnx opened this issue 7 years ago • 0 comments
trafficstars

I have a git repository, with a GitHub remote. So far, I've been using it with plain old Git, this is my first time trying GitLess. I'm on the master branch, set up to the track the corresponding remote branch:

$ gl remote
List of remotes:
  ➜ do gl remote -c r r_url to add a new remote r mapping to r_url
  ➜ do gl remote -d r to delete remote r

    origin (maps to [email protected]:shdnx/my-project.git)

git push correctly prompts me for my id_rsa SSH key passphrase. However, gl publish fails without ever prompting me:

$ gl publish
! No dst branch specified, using upstream branch origin/master
✘ [email protected]: Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Oddly, attempting to set the upstream branch through GitLess fails the same way:

$ gl branch -su origin/master
✘ [email protected]: Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

This possibly relates to or is a duplicate of #160, in that a password prompt is expected, but is not shown. If that's the case, please close as duplicate (and sorry for the noise!).

Thank you for the great work! GitLess is an awesome project.

shdnx avatar Dec 29 '17 22:12 shdnx