I'm following along with a seminar on how and why to use Github and when I attempt to input the following command into the terminal as the speaker does:

open ~/.ssh/id_rsa.pub

I get the following error:

Couldn't get a file descriptor referring to the console

I tried following the instructions to generate a new key on github but was met with a separate issue when trying to pbcopy (used an xclip alias to use pbcopy) when I tried this command:

 pbcopy < ~/.ssh/id_rsa.pub

I am met with this error:

Error: Can't open display: (null)

Anyone have any idea what I'm doing wrong? Would greatly appreciate all and any help or suggestions!

  • I have the same problem, did you ever figure it out? I also vimed id_rsa.pub and copied the key and pasted it to github. Github said it was invalid. – William Cullian Dec 17 '16 at 14:28

Browse other questions tagged .