Hello! I needed a script to save some files in /tmp in OpenWRT before reboot, and since I use EdgeRouter X which has no USB, I wanted to save it to Raspberry pi. I was trying to use sshfs, so read this page:
https://openwrt.org/docs/guide-user/services/ssh/sshfs.server
In the end I did manage, but it wasn't easy. I had to do a lot of search. I wish this guide had told me more.
First, it only says that the client needs to have sshfs installed, but itshould have "openssh-client" installed, too. I didn't notice that I didn't have this, because apparently I had some other ssh, so ssh was working.
And then, it says "This public key line also needs to be copied to the server and placed in the file /etc/dropbear/authorized_keys ", but my Raspberry pi did not have dropbear, so there was no /etc/dropbear. In the end, I used keygen and put it under .ssh. A hint about what to do if /etc/dropbear is not there would be useful. (In fact I did install dropbear and followed the guide, but still didn't work, because at that point I didn't know that I didn't have openssh.)
And then, there was an issue with permission: the folder on the server that needs to be mounted on the client should have the right ownership, permission, etc. It would be nice if it's also written on the page. In my case, it was pretty hard, because proper ownership required reformatting it to ext4: exfat doesn't work.
Whenever something is wrong, sshfs hangs up and freezes something on the router. That's pretty scary, it would be nice if this is also mentioned: what to worry, what not to worry, etc.
But thanks to those who are writing this kind of guides at all