Sent using Zoho Mail
---- Le jeu., 04 févr. 2021 13:40:25 -0500 Samuel Thibault
<[email protected]> écrit ----
> Paul Dufresne, le jeu. 04 févr. 2021 13:38:17 -0500, a ecrit:
> > except it was generated in QEMU (with ssh)... and I don't know yet how to
> > copy the file from QEMU virtual machine to the host.
>
> You can use the hostfwd qemu option to get access to an ssh server
> running inside your guest.
>
> Samuel
>
I am already running:
kvm -m 2G -drive file=hd.img,cache=writeback -net
user,hostfwd=tcp:127.0.0.1:2222-:22 -net nic,model=e1000 -cdrom hurd.iso --boot
d
and accessing the ssh server with:
ssh paul@localhost -p 2222
This is in that ssh, that I generated the mini.iso file...
Now, can I use scp to copy the file to the host?
I barely knows how to use scp.
I have read:
https://www.cnx-software.com/2011/10/02/how-to-transfer-files-between-host-and-qemu-via-ssh-and-nfs/
but it seems to be the other way than what I want to do.