Question: are ssh keys more secure than passwords?
Answer: Pros of SSH key authentication The first pro is that SSH keys are more difficult to hack than passwords and thus are more secure. SSH keys can be up to 4096 bits in length, making them long, complex, and difficult to brute-force hack. ... And unlike passwords, your private SSH key isn't sent to the server.