Enable root SSH and SFTP on your FlashForge 3D printer in under a minute
Works on the Adventurer 5M, 5M Pro, and 5X (AD5X).
This is a small USB-based provisioning script. When your printer boots with the USB inserted, it automatically:
- Turns on root SSH access.
- Sets up SFTP so you can drag-and-drop files to the printer.
- (AD5X only) installs a tiny boot hook so SFTP keeps working after reboots.
- A USB stick (any size), formatted as FAT32.
- A computer to copy a couple of files onto it.
- Your printer's IP address — found in the printer's network / Wi-Fi settings.
1. (Optional) Change the password.
Open flashforge_init.sh in a text editor and edit the ROOT_PASSWORD line
near the top. The default is flashforge.
2. Copy two things to the USB stick's root folder:
flashforge_init.sh- one printer folder — the one that matches your printer:
5m-series/for the Adventurer 5M or 5M Pro, orad5x-series/for the Adventurer 5X
3. Flash the printer.
- Power the printer off.
- Plug in the USB stick.
- Power the printer on.
- Wait about 30–60 seconds. The 5m series will emit a sound when the process is complete.
4. Remove the USB and reboot the printer. Done — SSH and SFTP are now enabled.
For maintainers / developers
If you want to understand how the AD5X sftp-server binary was built or rebuild
it yourself, see:
docs/REPRODUCING-THE-SFTP-BINARY.md— Documentation for building the binary.docker/ad5x-sftp-build/— Dockerized reproducible cross-build of the binary.