0

I've set up my SSH keys for use with Git, and I'm using Oh My Zsh shell with the ssh-agent plugin.

It works great but I have to enter the passphrase every time I login.

All the solutions I've seen are geared up for Apple, using ssh-add -K to .zshrc or editing ~/.ssh/config.

I have tried using this answer for editing ssh/config but simply can't get it to work :( This is what I have in my config file:

Host github.com
  User git
  Hostname github.com
  IdentityFile ~/.ssh/id_rsa

And apparently keychain isn't designed to persist the passphrase:

With keychain, you only need to enter a passphrase once every time your local machine is rebooted.

Is there any way to do this for an Ubuntu-based Linux?

Jake Rayson
  • 921
  • 7
  • 20
  • People are probably thinking "but this question has been answered a thousand times on Stack Overflow already!" Nope, not as far as I can find, nothing about persisting the passphrase between logins on Linux :) – Jake Rayson Nov 13 '22 at 22:45
  • 1
    Probably because it's not a programming question. This should be asked on unix.stackexchange.com. – chepner Nov 14 '22 at 14:59
  • Ahh, I thought Stack Overflow was software development as well, git stuff coming under that heading, and I've seen a lot of SSH stuff here eg https://stackoverflow.com/questions/21095054/ssh-key-still-asking-for-password-and-passphrase Is it best if I move it? – Jake Rayson Nov 14 '22 at 16:12
  • There are a lot of off-topic questions on Stack Overflow. SSH is not primarily (or even usually) used for software development. – chepner Nov 14 '22 at 16:17
  • That's not true, software development relies on version control, which is mostly git, and mostly carried out over SSH! And SSH isn't unix specific, so where should the question be asked? – Jake Rayson Nov 15 '22 at 09:54

0 Answers0