3

Is it possible to keep added ssh keys in ssh-agent after reboot?

As I figure out we use keychain to make ssh-agent keep running between logins, Am I right? so, is there anyway to keeps password somewhere safe with keychain and feed them automatically to key-add?

What about using a key without password? is there any different?

Ravexina
  • 54,268
  • 25
  • 157
  • 179

1 Answers1

2

Is it possible to keep added ssh keys in ssh-agent after reboot?

No way to keep them over reboot, because RAM is not persistent over reboots. You can put the ssh-add your_key into your ~/.bash_profile to make sure they are added.

Or use gnome-keyring or seahorse, which where you can store both keys and passphrases.

Jakuje
  • 6,505
  • 7
  • 30
  • 37