Powershell/github issue with adding SSH key to clipboard

github, powershell

Solution

`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"`.

Problem

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: ``` clip < ~/.ssh/id_rsa.pub ``` But I get the following error: ``` The '<' operator is reserved for future use. ``` Any way to work around this?

Original source