VectorLinux

The nuts and bolts => Networking & Security => Topic started by: roarde on May 20, 2014, 03:40:08 pm

Title: Copy files between running qemu instance and VL host.
Post by: roarde on May 20, 2014, 03:40:08 pm
I'm told this is essentially a network operation, so I post it here.

I've enabled sshd, but have done no configuration. I know creating an additional filesystem and mounting/umounting it between guest and host is another way to go here, but file transfer will be frequent enough for that not to be practical.

I'm pretty much totally ignorant of networking, and cannot find a place to get started. Host will be VL (7.0 for now), guest is usually but not always VL.

Is there a way to set this up so that the qemu session would be the only "remote" connection accepted? I'm not interested in shell hosting, especially for those "unknown" users.
Title: Re: Copy files between running qemu instance and VL host.
Post by: bigpaws on May 20, 2014, 04:24:31 pm
I believe I know what you are trying to do.

http://fuse.sourceforge.net/sshfs.html (http://fuse.sourceforge.net/sshfs.html)

This will allow you to create a remote mount point and
transfer files each way.

HTH

Bigpaws
Title: Re: Copy files between running qemu instance and VL host.
Post by: roarde on May 20, 2014, 04:48:28 pm
Thanks for your response, bigpaws. From what I can tell, you do indeed understand what I need to do.

But I don't understand where I would install sshfs, how to login to the server with ssh, and for that matter am not entirely sure what to supply for "hostname:".

I should have supplied an exponent to "ignorant".
Title: Re: Copy files between running qemu instance and VL host.
Post by: bigpaws on May 20, 2014, 05:38:35 pm
sshfs is installed on the client.

There is nothing else you need.

Then create a mount point (I usually use a new directory in my /home)
then you need to mount it. An example command from the client (It does not
matter which host it is):
sshfs hostname(or ip)@:/directory path /mount/point

HTH

Bigpaws
Title: Re: Copy files between running qemu instance and VL host.
Post by: M0E-lnx on May 22, 2014, 04:14:00 am
You could just sftp using lftp from the guest to the host
Title: Re: Copy files between running qemu instance and VL host.
Post by: nightflier on May 22, 2014, 04:21:58 am
I use Midnight Commander (mc).

Menu > Right > Shell link