So I started to use ssh on a server and I noticed that there are two ways of authenticating. I can either just type ssh@username and then provide password or I can use -i command and then select a key file that I have on my drive to give as an argument?
I though the key was necessary to encrypt the communication. If the key file is not provided what is the key used to encrypt the communication?