I forgot the password to my ssh
. I am planning to remove the files (id_rsa, id_rsa.pub and known_hosts)
in the directory and starting from scratch. I haven't been using ssh
since the whole heartbleed thing and I've cleared out the stuff in the keys before but I think I did it wrong.
My question is how do I recreate the files properly and set up ssh
to stop asking me for passwords when I'm connecting to git
or other things?
cd ~/.ssh
andssh-keygen -f id_rsa -p