0

I log into my raspberry pi via ssh. I am trying to read and write to a file located in my C drive using Node-Red. However when I deploy the Node-red task, the file that I amend is not located in the C drive directory I asked it to read and write too. Instead, when I log into the raspberry pi via its desktop (without ssh) I find the file I tried to amend located in the home/pi directory.

Why is this the case? Can I not do this operation via ssh? Does ssh just provide access to the raspberry pi and that's it? I have seen a Youtube video showing someone reading and writing to a windows directory. https://www.youtube.com/watch?v=iOAyLQD0Wro&t=58s Or is this not done using a raspberry pi? Thank you.

2 Answers 2

1

On your windows computer, use Windows folder sharing to share your destination folder

Then mount this shared folder on your raspberry pi

Finally, instruct node-red to write to the windows shared folder at the location you have mounted it in your raspberry pi

0

Thanks to Shodan I managed to figure it out.

I followed this tutorial (https://pimylifeup.com/raspberry-pi-samba/) to install samba and set up a sharing network between my windows pc and pi. This works for my current needs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.