How to access /jffs folder in router to add custom ddns script?

craymond

New Around Here
Hi, I am new to this firmware and am finding it literally has everything I need/want, except I cannot for the life of me figure out how to access the /jffs folder. I have read the wiki on adding scripts and altered the sample script for custom ddns for my setup. I feel like its probably something super easy that im missing. I have formatted the partion and enabled custom scripts and configs.
 

John Fitzgerald

Very Senior Member
Hi, I am new to this firmware and am finding it literally has everything I need/want, except I cannot for the life of me figure out how to access the /jffs folder. I have read the wiki on adding scripts and altered the sample script for custom ddns for my setup. I feel like its probably something super easy that im missing. I have formatted the partion and enabled custom scripts and configs.

You can use PuTTY: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
 

Crimliar

Senior Member
If you are using Chrome or Edge Browsers, then the easiest way is just to add the "secure shell" extension. It's not the most powerful SSH tool, but it gets the job done.
As a noob once you've SSH'ed in, run AMTM and installed entware, you might want to look at installing MOSH and then using that from the Secure Shell extension instead. If you're the kind of person who gets distracted it's great for resuming your session if you've been called away half way through something!
On the other hand, if you later find you are running multiple connections then MobaXterm is great (even though I hate the UI)!
For exploring the directories, I'd also suggest installing MC (Midnight Commander)!
 

John Fitzgerald

Very Senior Member
Thanks! I'll look into it, something new to learn, I guess.

You have to allow SSH from the router (on the LAN side only) and you should change the stock port 22 to a higher number. https://routebig.com/what-is-port-number/
These settings get applied and saved on the router.

From the desktop you open PuTTY then enter your 192.168.x.x, allow SSH, input the port number and give it the model of your router and hit save. You can now load the saved setting for future use to load and open the session.

As mentioned above there is more than one way to go about this.
 

craymond

New Around Here
Thank you both! I may have bitten off more than I can chew. I didn't realize this is basically terminal...does anyone know of a tutorial I could follow on how to accomplish what I (think) I need to do, which is create the /jffs/scripts/ddns-start directory, and place a script in that location? Im pretty ok at following instructions, I setup open vpn, pihole, and nextcloud on a raspberrypi, but I wasn't able to find a guide on this one.
 

Crimliar

Senior Member
Thank you both! I may have bitten off more than I can chew. I didn't realize this is basically terminal...does anyone know of a tutorial I could follow on how to accomplish what I (think) I need to do, which is create the /jffs/scripts/ddns-start directory, and place a script in that location? Im pretty ok at following instructions, I setup open vpn, pihole, and nextcloud on a raspberrypi, but I wasn't able to find a guide on this one.
It sounds like now might be a good time to share what you are trying to do rather than how you are trying to do it!
 

L&LD

Part of the Furniture
Please share your success so others may benefit too.
 

craymond

New Around Here
For anyone going by this solution in the future just know that I can't answer your questions because I don't know what any of it means. I just do things. If its wrong, its wrong.

Open putty and SSH into your router
type "cd /jffs/scripts/"
type "nano"
paste your custom script for ddns found on the wiki https://github.com/RMerl/asuswrt-merlin.ng/wiki/DDNS-Sample-Scripts
Edit the script with your own token, hostname etc..
Type "ctrl+o" and enter the name of the file as "ddns-start"
Type "ctrl+x" to exit nano
Type "chmod +x /jffs/scripts/ddns-start"
Exit putty
Then follow the rest of the wiki here: https://github.com/RMerl/asuswrt-merlin.ng/wiki/Custom-DDNS
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top