ssh
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ssh [2026-04-11 00:17 UTC (8 months ago)] – Clarify disk format bettse | 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 '' | ||
| - | You can get root ssh on the device relatively easily by remounting | + | - A PROXdongl3 with a '' |
| + | - An '' | ||
| + | |||
| + | The USB route is the easiest. Format your USB stick FAT32 (MBR) and copy your '' | ||
| - | Placing something like the following in ''/ | ||
| <code bash> | <code bash> | ||
| #!/bin/sh | #!/bin/sh | ||
| + | HERE=$(cd " | ||
| mount -o remount,rw / | mount -o remount,rw / | ||
| - | echo ' | + | [ -f / |
| - | echo "Port 22" > / | + | |
| - | echo " | + | { |
| - | echo " | + | echo "Port 22" |
| - | echo " | + | echo " |
| + | echo " | ||
| + | echo " | ||
| + | echo " | ||
| + | } > / | ||
| mkdir -p /root/.ssh | mkdir -p /root/.ssh | ||
| - | echo "your keys" > / | + | cat "$HERE/ |
| - | chmod 0700 /root/.ssh | + | chmod 0700 /root/.ssh |
| + | chmod 0600 / | ||
| + | systemctl enable sshd.socket | ||
| + | systemctl restart sshd.socket | ||
| + | mount -o remount,ro / | ||
| + | </ | ||
| - | systemctl enable --now sshd.socket | + | The stock config is saved as '' |
| - | mount -o remount, | + | A [[https:// |
| + | |||
| + | ===== Copying files ===== | ||
| + | |||
| + | The device has an old OpenSSH. Use legacy scp mode: | ||
| + | |||
| + | < | ||
| + | scp -O file root@< | ||
| </ | </ | ||
| - | Format USB Dongle MS-DOS (FAT), not ExFat | ||
ssh.1775866630.txt.gz · Last modified: by bettse
