I read an article about SSH-keys. The author says that they are stronger than password-based authentication. All you need to do is just to create a pair of keys (public key and private key), move your public key to the server and you are done. I know that assymetric key cryptography come in handy when encoding data, but what data do you encode in this case? So, why exactly SSH-keys are stronger than password-based authentication? For me private key is just a long password. The difference is only in the ways to enter the remote host. In password-based authentication you just type the password, in SSH-keys authentication you just type in the private key:
$ ssh -i privatekey.private user@the_server_address
So what's the difference?