Skip to main content
added 64 characters in body; deleted 85 characters in body; deleted 1 character in body; deleted 6 characters in body
Source Link
techraf
  • 4.9k
  • 11
  • 25
  • 42

You can transfer files using SCP protocol working on the same port as SSH. For that you need to redirect the port 22 and connect withon the virtual machine to a local port (ssh2222 to that portin this example):

kvm -m 2G -hda image.raw -hdb image.data.qcow2 -redir tcp:11180::80 -redir tcp:2222::22
 
ssh -p 2222 localhost

You might need to add the account name beforeand connect with localhostssh to that port:

ssh -p 2222 user@localhost

To transfer files you can then use scp:

scp -p 2222 local_copyfile.txt user@localhost: file.txt

You can transfer files using SCP protocol working on the same port as SSH. For that you need to redirect the port 22 and connect with ssh to that port:

kvm -m 2G -hda image.raw -hdb image.data.qcow2 -redir tcp:11180::80 -redir tcp:2222::22
 
ssh -p 2222 localhost

You might need to add the account name before localhost:

ssh -p 2222 user@localhost

To transfer files you can then use scp:

scp -p 2222 local_copy.txt user@localhost: file.txt

You can transfer files using SCP protocol working on the same port as SSH. For that you need to redirect the port 22 on the virtual machine to a local port (2222 in this example):

kvm -m 2G -hda image.raw -hdb image.data.qcow2 -redir tcp:11180::80 -redir tcp:2222::22

and connect with ssh to that port:

ssh -p 2222 user@localhost

To transfer files you can then use scp:

scp -p 2222 file.txt user@localhost:file.txt
edited body
Source Link
techraf
  • 4.9k
  • 11
  • 25
  • 42

You can transfer files using SCP protocol working on the same port as SSH. For that you need to redirect the port 22 and connect with ssh to that port:

kvm -m 2G -hda image.raw -hdb image.data.qcow2 -redir tcp:11180::80 -redir tcp:2222::22

ssh -p 2222 localhost

You might need to add the account name before localhost:

ssh -p 2222 user@localhost

To transfer files you can then use scp:

scp -p 2222 local_copy.txt user@localhost: file.txt local_copy.txt

You can transfer files using SCP protocol working on the same port as SSH. For that you need to redirect the port 22 and connect with ssh to that port:

kvm -m 2G -hda image.raw -hdb image.data.qcow2 -redir tcp:11180::80 -redir tcp:2222::22

ssh -p 2222 localhost

You might need to add the account name before localhost:

ssh -p 2222 user@localhost

To transfer files you can then use scp:

scp -p 2222 user@localhost: file.txt local_copy.txt

You can transfer files using SCP protocol working on the same port as SSH. For that you need to redirect the port 22 and connect with ssh to that port:

kvm -m 2G -hda image.raw -hdb image.data.qcow2 -redir tcp:11180::80 -redir tcp:2222::22

ssh -p 2222 localhost

You might need to add the account name before localhost:

ssh -p 2222 user@localhost

To transfer files you can then use scp:

scp -p 2222 local_copy.txt user@localhost: file.txt
Source Link
techraf
  • 4.9k
  • 11
  • 25
  • 42

You can transfer files using SCP protocol working on the same port as SSH. For that you need to redirect the port 22 and connect with ssh to that port:

kvm -m 2G -hda image.raw -hdb image.data.qcow2 -redir tcp:11180::80 -redir tcp:2222::22

ssh -p 2222 localhost

You might need to add the account name before localhost:

ssh -p 2222 user@localhost

To transfer files you can then use scp:

scp -p 2222 user@localhost: file.txt local_copy.txt