Advertisement
metalx1000

Qemu Port Forwarding/Redirecting for sshd tunneling tinycore

Feb 4th, 2015 (edited)
622
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.51 KB | None | 0 0
  1. wget "http://tinycorelinux.net/6.x/x86/release/TinyCore-current.iso"
  2.  
  3. #old way
  4. #qemu-system-i386 -m 256 -boot d -cdrom TinyCore-current.iso -redir tcp:5555::22 #you can also add -enable-kvm for speed
  5.  
  6. qemu-system-i386 -m 256 -boot d -cdrom TinyCore-current.iso -nic user,hostfwd=tcp::5022-:22
  7. #you can also add -enable-kvm for speed
  8.  
  9. #in VM
  10. tce-load -iw openssh.tcz
  11. sudo /usr/local/etc/init.d/openssh start
  12. passwd #create password for tc user
  13.  
  14. #on remote machine
  15. ssh -p 5555 tc@<ip of host machine for VM>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement