I found that on some Debian installations, ssh-add would not remember the passwords post the life of an ssh shell. If you need to get it to remember it permanently, you need to add the following to your ~/.ssh/config file (create the file if it does not exist already):
#cat ~/.ssh/config IdentityFile ~/.ssh/id_rsa_mykey
Provide the path of your private key.
This key will be remembered for ssh authentication and also for a git push like in Bitbucket or Github. I’m not sure why the key gets remembered in some Debian installations.
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.