I created a key with ssh-keygen and added it to ssh-agent successfully.
All I know about ssh-agent is that it will encrypt my private key and enable ssh connection without using passphrase each time.
I am curious if I can delete the keys in ~/.ssh
directory after adding them to ssh-agent because when I try to see the private key, I can see it just like before.
I guess I do not understand how ssh-agent is helping with security here because if anyone has access to my machine, they can easily see my private key.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…