0

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.

M.A.K. Ripon
  • 3,139
nick9120
  • 1
  • 1

1 Answers1

1

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.

Ugur Akgul
  • 64
  • 4
  • 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. https://superuser.com/questions/42134/how-do-i-enable-the-shared-clipboard-in-virtualbox – Melebius Jul 02 '19 at 10:08
  • Thank you for your contribution. – Ugur Akgul Jul 02 '19 at 10:39