2

I'm used to git only prompting me for my SSH passphrase the first time I need to authenticate to a server.

On the system I'm currently on, this only works in a Gnome session. If I start a KDE session, git will require the SSH passphrase every time it authenticates.

Explicitly using the ssh-add comand works around this - after I enter the passphrase, I won't be asked for it again.

Why is git able to implicitly use the ssh agent in one desktop, but not the other? Is there some environment variable or .bashrc thing I need to change?

2
  • 2
    I don't know about KDE, but in Gnome, gnome-keyring-daemon is the process that keeps your ssh keys unlocked. Commented May 7, 2015 at 13:44
  • Apparently KDE's equivalent is KWallet: blog.sleeplessbeastie.eu/2012/08/12/… Commented Aug 25, 2015 at 21:37

1 Answer 1

1

SSH agent is not started by KDE by default. You need to install package like AUR (en) - plasma-workspace-agent-ssh to start that. And install ksshaskpass to make it ask paraphrase. Then create an autostart file (KDE4: ~/.kde4/Autostart/ssh-add.sh, KDE Plasma: ~/.config/autostart/ssh-add.sh) with this content:

#!/bin/sh
ssh-add </dev/null

reference: KDE Wallet - ArchWiki

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.