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:
1 2 |
clip < ~/.ssh/id_rsa.pub |
But I get the following error:
1 2 |
The '<' operator is reserved for future use. |
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"
.