Copying text within a .pub file?
Hello everyone,
I just installed Ubuntu Server on a VM. Then I created a new SSH key and I am now trying to get that from the guest machine to the host machine. Is there any way of using copy and paste? Found a lot of vim commands (http://www.tuxfiles.org/linuxhelp/vimcheat.html), but oviously I am too stupid to get the right use of those "y" commands. I am not too used to Linux or vim or anything within the terminal, so please help! :-) |
Hi,
Vim is an editor and has nothing to do with a vm (virtual machine). If you want to copy files between a virtualmachine and a host, you'll have to share folders of the host, so that you can access them from the guest. If you are using virtualbox, you will have to install the "guest additions" before you can share the folders. Markus |
Hey markus,
yes, I do know that, sorry for the confusion about saying VM and VIM. So, how can I enable shared folders? |
Which vm are you using? virtualbox or vmware? or what?
You could also simply configure nfs on the server and then access these folders from the host. Markus |
I am using Virtualbox. What I am trying to do in general is setting up a new "Vagrant box" (www.vagrantup.com"), but to finish my system, I want to pull a repo from github that requires SSH. To send my ssh key, I want to copy it from the guest client to the host machine :(. That is all that I want.
|
Did you install the guest additions?
|
Yes, I did. Or lets say, I should have, I experienced problems doing this, but I think I was able to fix it. A few hours ago, I updated VirtualBox, but it didn't seem to affect the Guest additions.
Awww, wait a second. I actually forgot that the Guest Additions have to installed, who could've known, on the Guest. Okay... going for that. I figured out by myself now how to handle copying inside the vi editor, it's just shift + v for marking everything, then going shift + p / shift + d. Though that does not solve my problem :(. |
I think that every new version of Virtualbox comes with a new guest additions, you should install them. Then you can try to mount a shared directory in your guestsystem.
Markus |
Okay, that is done - Guest Additions are up and running.
So, how can I now get my copied SSH-key out of my .pub file and get it pasted within the host machine? Basically, how do I mount that shared directory? |
I haven't yet virtualbox installed, os I can't say exactly what to do, you should read the documentation.
Anywhere in the Menu: "Devices" Markus |
Damn, I was hoping for a fine, quick solution. Oh well, I'm off reading documentation then - thanks for the help!
|
From the manual:
Quote:
|
All times are GMT -5. The time now is 06:46 AM. |