[SSH] Enable login using public SSH Key on my Linux system

Hello, I would like to try ssh login using SSH public key however I don’t want to disable password authentication for current SSH users. How can I manage to enable it only for me to try on a Linux operating system?

And what would be the best approach for it? Thank you

Have a great day
Felix

It’s quite easy:

vim /etc/ssh/sshd_config

look #PubkeyAuthentication yes

And uncomment it:

PubkeyAuthentication yes

After that.

Google how to use ssh-copy to copy your Public key.