This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Git passphrase and console/GUI popup

Tags: None
(comma "," separated)
User avatar
eXtremeDevil
Registered Member
Posts
58
Karma
0
OS
Hi, I recently installed Kubuntu 18.04. I used to have an old Ubuntu 14.04 with KDE installed on it. When I worked with git on that one, a gui popup appeared for the password. But now, on 18.04, it ask for my passphrase on the console I'm running the commands.

Is there a way to have that GUI prompt back?

Thanks!
User avatar
raphaelra
Registered Member
Posts
209
Karma
0
OS
Code: Select all
man gitcredentials
Section REQUESTING CREDENTIALS
User avatar
eXtremeDevil
Registered Member
Posts
58
Karma
0
OS
Funny, GIT_ASKPASS is NOT defined, but core.askPass and SSH_ASKPASS are both defined to /usr/bin/ssh-askpass, which is definetely a GUI.
User avatar
eXtremeDevil
Registered Member
Posts
58
Karma
0
OS
I've read that maybe ssh or ssh-agent is being used, how to tell THEM to use the GUI?
User avatar
eXtremeDevil
Registered Member
Posts
58
Karma
0
OS
I did all that. Where do I change http to git?
User avatar
raphaelra
Registered Member
Posts
209
Karma
0
OS
Code: Select all
man git-remote
git-remote -v displays all remote repositories you use. With git remote set-url <remote_name> <remote_url> you can change the url. Quick and dirty way - delete and checkout your project again with git clone ssh://... instead of http://...
User avatar
eXtremeDevil
Registered Member
Posts
58
Karma
0
OS
Mmm okay my project is actually on ssh, not https. If I do ssh-add -c and input my password, then on git pull I GET the GUI prompt, but the pull fails with:

sign_and_send_pubkey: signing failed: agent refused operation

If I do ssh-add and input my password, then on git pull I DO NOT GET the GUI prompt, but the pull works.

Any hints?
User avatar
eXtremeDevil
Registered Member
Posts
58
Karma
0
OS
I got it working with this git config:

[credential]
helper = cache
[core]
askPass = /usr/bin/ksshaskpass
sshCommand = setsid ssh


No idea why though, I didn't have that config on my other system before updating to Kubuntu 18.04...

Thanks anyway!


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot]