cat ~/.ssh/id_rsa.pub | ssh firstname.lastname@example.org "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
can someone explain how the quotations works.
From what I understand. I am reading the public key on my disk then piping it to the server, making a directory if it doesn't exist and then... am I using this second concatenation to read from my disk? what is being concatenated?
It get confusing because im used to seeing a file after the cat command.