Purpose: You need to connect to a Linux machine from Windows 11.
We first need to enable the Windows Subsystem for Linux (WSL). From the Search Menu, search for "Turn windows features on or off". Once there, scroll down until you see "Windows Subsystem for Linux". Check that box and apply. It might take a bit to install the software required. Then reboot.
Once installed, go to the Windows Store (Start Menu -> Search for "Store"), and then install the following programs from there:
So now you should have Ubuntu installed on top of Windows. This will make using ssh much nicer and less aggravating.
Now we can connect Windows Terminal and Ubuntu together. I don't have a Windows machine so I'm guessing that the following will work. From this stack overflow post, the first answer, step three says to open Windows Terminal (not powershell nor cmd). Then you can click settings in the top right corner, and insert that following snippet. That should allow for Windows Terminal to use the Ubuntu installation nicely.
So now we have gone through installing WSL and getting you the interface to setup SSH with. Lots of work, but I think the above is worth the work since it will make using SSH enjoyable and productive.
So now, once you open up Windows Terminal running Ubuntu, you can type the following command:
ssh-keygen -t ecdsa -b 521 -C "<YOUR EMAIL ADDRESS>"
And if you follow the prompts, you will have created your ssh key! Mostly you can just press the enter key and things will work out fine. Do not specify a different key location from the default.
Now, type the following command:
cat ~/.ssh/id_ecdsa.pub
And send the output of that command to the system administrator in an email. That is your public key and will be installed on the remote server.