I am trying to copy my ssh key from ubuntu to github and have tried Ctrl+Shift+C to copy Ctrl+Shift+V to paste. I've tried using the copy and paste from the edit drop down and also tried this command: pbcopy < ~/.ssh/id_rsa.pub to copy to my clipboard. None of these seem to work. I am new to programming and ubuntu. I'm unsure of what I am doing incorrectly.


If you are copying inside a VM, in some VM's Windows doesn't know that. If you are using Virtualbox, you can't copy something inside the VM and then paste it on Windows. But some VM's can do that like Vmware workstation. I used both virtualbox and vmware workstation and i've come across with that problem at the time. While virtualbox doesn't allow you to copy-paste from vm to host ; vmware workstation will allow you to copy-paste to host.

If it isn't so crucial you can mail your key to you or you can transfer it via USB. These are the ways i can think of at the moment.

Note: In virtualbox you can create a shared folder and that folder will be used on both in guest and host operating systems. You can give that a try.

  • 1
    VirtualBox has shared clipboard (i.e. you can copy-paste from VM to host and the other way round) but it’s disabled by default. superuser.com/questions/42134/… – Melebius Jul 2 at 10:08
  • Thank you for your contribution. – Ugur Akgul Jul 2 at 10:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.