I have a question about ssh key, I want to know if is better to set password for ssh key or not? which one is more secure?
closed as unclear what you're asking by Scott, robinCTS, bertieb, Pimp Juice IT, fixer1234 Jul 13 at 2:55
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
If you do NOT put password to your SSH Private Key - then anyone who managed to copy it - can use it. Whether this is considered secure (enough) or not is up to you.
If you put password to your SSH Private Key - then if someone managed to copy your key, they will need your passphrase/password before they can use it. Consider it like a 2 factor authentication - you need both the SSH Privatey Key AND your Password/Passphrase - before it is usable.
I personally believe that putting password/passphrase into SSH key to be more secure, but depends on how you define security or what you believe to be secure.