Copy SSH Keys to Linux Host From Windows

Now that we have terminal in our Windows installs, we now do not need to install another ssh application. However how do we get our SSH keys uploaded/installed onto our Linux VPS/Servers?

All you have to do is create your SSH Key but issuing the ssh-keygen.exe command from the terminal.

This will create your newly needed key. Now we need to upload it to our Linux system. This is now pretty easy since Windows 10/11, from that same terminal window run the following.

cat ~/.ssh/id_rsa.pub | ssh <user>@<host> "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys"

That is it! Now you can ssh directly into your box without the password.