Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Powershell/github issue with adding SSH key to clipboard

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?

like image 512
Tohmas Avatar asked Feb 14 '13 14:02

Tohmas


1 Answers

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

like image 184
Adrian Taylor Avatar answered Sep 20 '22 12:09

Adrian Taylor