ssh
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ssh [2026-11-23 02:50 UTC (5 days ago)] – add more ssh info, github link to tooling to auto-create a USB on mac and linux, add by-hand commands, reference pic32 watchdog that nx starts. qkb | ssh [2026-11-23 04:14 UTC (5 days ago)] (current) – suggest manual stick creation as default (our audience is sophisticated enough to format a USB stick manually; less is more), and offer make_dongle.py as alternative doof | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== SSH ====== | ====== SSH ====== | ||
| - | Root SSH is not enabled on a stock unit. Root login is closed in the stock '' | + | Root SSH is not enabled on a stock unit. Root login is closed in the stock '' |
| - A PROXdongl3 with a '' | - A PROXdongl3 with a '' | ||
| - An '' | - An '' | ||
| - | - The serial console on the '' | ||
| - | The USB route is the easiest. | + | The USB route is the easiest. |
| - | + | ||
| - | < | + | |
| - | ./ | + | |
| - | </ | + | |
| - | + | ||
| - | With no arguments it lists removable disks and keys. The non-interactive form: | + | |
| - | + | ||
| - | < | + | |
| - | ./ | + | |
| - | </ | + | |
| - | + | ||
| - | '' | + | |
| - | + | ||
| - | By hand, the same stick is: | + | |
| - | + | ||
| - | < | + | |
| - | diskutil eraseDisk FAT32 MP_SD MBRFormat / | + | |
| - | + | ||
| - | sudo parted -s /dev/sdX mklabel msdos # Linux | + | |
| - | sudo parted -s /dev/sdX mkpart primary fat32 1MiB 100% | + | |
| - | sudo mkfs.vfat -F 32 -n MP_SD /dev/sdX1 | + | |
| - | + | ||
| - | cp usb/ | + | |
| - | cp ~/ | + | |
| - | </ | + | |
| - | + | ||
| - | The one MBR partition matters. The unit mounts partition 1, and a default GPT layout makes that an empty EFI partition, so the payload never finds the script. | + | |
| - | + | ||
| - | The stick alone is not enough. The PROXdongl3 EEPROM needs the '' | + | |
| - | + | ||
| - | < | + | |
| - | [TestMode] | + | |
| - | dev=/ | + | |
| - | mount -o noatime $dev $mp | + | |
| - | [ -e $mp/ | + | |
| - | || systemctl --no-block start nx | + | |
| - | </ | + | |
| - | + | ||
| - | At boot the payload mounts the stick and runs '' | + | |
| - | + | ||
| - | Without the EEPROM dongle, put the same script on the init SD card as '' | + | |
| - | + | ||
| - | ===== Access | + | |
| - | + | ||
| - | Put a public key next to the script as '' | + | |
| <code bash> | <code bash> | ||
| Line 79: | Line 33: | ||
| The stock config is saved as '' | The stock config is saved as '' | ||
| + | |||
| + | A [[https:// | ||
| ===== Copying files ===== | ===== Copying files ===== | ||
| Line 88: | Line 44: | ||
| </ | </ | ||
| - | ===== Watchdog ====== | ||
| - | |||
| - | nx feeds the PIC32 watchdog. If the script leaves nx stopped, add NxExe watchdog 0; the stock [TestMode] path already does. See [pic32] and [nx]. | ||
| - | < | ||
| - | NxExe watchdog 0 | ||
| - | </ | ||
| - | |||
| - | The stock '' | ||
ssh.1795402231.txt.gz · Last modified: by qkb
