gearboxworks / launch

Running in Docker made trivial
2 stars 0 forks source link

Remote mounts broken. #26

Closed MickMake closed 3 years ago

MickMake commented 3 years ago

For remote, will need to switch to SSHFS. Currently it does:

  1. launch will get the dir path from local machine.
  2. Create that path internally in the container.
  3. Mount this path from remote machine within container.
MickMake commented 3 years ago

Further... launch needs to be modified such that it will mount the local dir into the remote container.

This can be done by using the existing SSH connection and tunnel SSHFS through that.

This is the better solution as the alternative is to open up potentially insecure SSH reverse connections back to the local machine.

So:

Local machine >-- SSH(dynamic port) --> Remote machine -- SSH(22) -> Remote container ->  command

Local machine <------------------------ SSHFS(dynamic port) ---------------------------<  SSHFS command
MickMake commented 3 years ago

Fixed.