Powershell/github issue with adding SSH key to clipboard

Question:

I am trying to add my SSH key to Github ,however I came across an issue:

I have tried running the following command in Windows Powershell to get the key:

But I get the following error:

Any way to work around this?

Answer:

cat ~/.ssh/id_rsa.pub | clip should work.

More generally, if you wish to run something with the old Command Prompt syntax, you can always wrap it up in cmd /c like this: cmd /c "clip < ~/.ssh/ida_rsa.pub".

Source:

Powershell/github issue with adding SSH key to clipboard by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply