Sublime Forum

Cache ssh-keys

#1

Hello, so I prefer using ssh to push/pull rather than https, but since I don’t want to enter my key’s passphrase every time I have set up ssh-agent for caching.

The agent start at login via a systemd/User service and I have correctly exported the SSH_AUTH_SOCK variable (basically, I just followed the arch wiki).

Sure enough, git push/pull work without the passphrase on the cli and ssh-add -l tells me that my key is indeed cached, but sublime merge still asks me for the passphrase every time.

In the sublime merge preferences Git Binary is set to system, so I assumed that it just calls git and I don’t understand why it’s not working…

System Info:
OS: Arch Linux
SSH version: OpenSSH_8.4p1, OpenSSL 1.1.1i
Git version: 2.30.1
Sublime Merge Version: Stable Channel, Build 2039

1 Like

#2

Have you logged out and back in again after setting up the environment variable?

0 Likes

#3

I set it up so that the variable is automatically reexported on login, so that shouldn’t make a difference.

0 Likes

#4

Sublime Merge uses whatever evrionment variables it inherits when it starts. Unless you’re starting it from the command line it will inherit the environment of your login shell, which wont have that variable set until you log out and in.

5 Likes

#5

As it turns out, that is almost the reason…

I use LightDM to start mx Xorg, which I just found out does NOT source my login shell when starting the window manager. So after also exporting the variable in ~/.xprofile, it now works.

Sorry for bothering.

0 Likes