Is it possible to transfer files from a device to a local machine?


#1

For debugging purposes I am looking for a way to quickly inspect an image file created in the device container on my local machine. Something like resin scp resin_uuid /path/to/remote/file /path/to/local. I know about resin sync but it works the other way round.


#4

:speech_balloon:You could resin ssh into the application container and execute a command to push the file out.


#5

What do you mean exactly when you say “push the file out” ? uploading it to a server ?


#6

Yes, instead of running scp on your development machine to pull a remote (resin) file to your local (dev machine) file system, you could run scp on the resin device to push a local (resin) file to a remove (dev machine) file system.


#7

Thank you for your reply. I will try this. The problem is that my local machine does not have a static IP to connect to.


#8

What about your hostname, do they resolve to IP on your network?


#9

For my own small testing I was using https://transfer.sh/
(send the file out of the device, and download it to your development machine)


#10

Indeed this is a great solution. Thanks a lot.