SSH keys provide a more secure way of logging into a virtual private server with SSH than using a password alone. With SSH keys, users can log into a server without a password. This tutorial explains how to generate, use, and upload an SSH Key Pair.
I started the tutorial (digital ocean) and I was able to get to this point
cat myfiile_rsa.pub | ssh email@example.com "cat >> ~/.ssh/authorized_keys"
bash: /home/myusername/.ssh/authorized_keys: No such file or directory
Do I have to create the directories? install a package ?
Note I replaced my ip and username with fake ones (220.127.116.11 and my username )