copy ssh key directly window
Get-Content ~/.ssh/id_rsa.pub | Set-Clipboard
Here is what the above code is Doing:
1. It’s getting the contents of the public key file and piping it to the Set-Clipboard cmdlet.
2. The Set-Clipboard cmdlet is taking the contents of the public key file and putting it on the clipboard.