Spring naar inhoud

Ontgrendel automatisch uw SSH sleutels

If your SSH keys are encrypted, you can configure the system to unlock them automatically in each new terminal window and tab you open.

To do this, add the following on its own line anywhere in your shell's configuration file (~/.zshrc for the default zsh shell, and ~/.bashrc for bash):

ssh-add

This works because KDE Linux automatically sets up a single-instance SSH agent and populates the required SSH_AUTH_SOCK environment variable for instant use.

Turning it off and setting things up manually is not recommended. If want to do it anyway, mask the relevant systemd service with systemctl mask --now --user ssh-agent.service, and then set things up to your taste.


Artikel bijgedragen door onder de licentie CC-BY-4.0.