ssh
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ssh [2026-01-15 23:05 UTC (11 months ago)] – Fixed display issue of script extrapickles | 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: | ||
| - | You can get root ssh on the device relatively easily by remounting the filesystem read-write and modifying / | + | ====== SSH ====== |
| + | |||
| + | Root SSH is not enabled | ||
| + | |||
| + | | ||
| + | - An '' | ||
| + | |||
| + | The USB route is the easiest. Format | ||
| - | 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 "Port 22" > / | + | [ -f / |
| - | echo " | + | |
| - | echo " | + | |
| - | echo " | + | |
| - | mkdir -p /root/.ssh | + | { |
| - | echo "your keys" | + | echo "Port 22" |
| - | chmod 0700 /root/.ssh | + | echo " |
| - | + | echo " | |
| - | systemctl enable --now sshd.socket | + | echo " |
| + | | ||
| + | } > /etc/ssh/ | ||
| + | mkdir -p /root/.ssh | ||
| + | cat " | ||
| + | chmod 0700 /root/.ssh | ||
| + | chmod 0600 / | ||
| + | systemctl enable sshd.socket | ||
| + | systemctl restart sshd.socket | ||
| mount -o remount,ro / | mount -o remount,ro / | ||
| </ | </ | ||
| + | The stock config is saved as '' | ||
| + | |||
| + | A [[https:// | ||
| + | |||
| + | ===== Copying files ===== | ||
| + | |||
| + | The device has an old OpenSSH. Use legacy scp mode: | ||
| + | |||
| + | < | ||
| + | scp -O file root@< | ||
| + | </ | ||
ssh.1768518312.txt.gz · Last modified: by extrapickles
