Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| access_the_batocera_via_ssh [2023/03/17 04:05] – [Basic file usage] Remove a truncated sentence, various cleanups and wording improvements maximumentropy | access_the_batocera_via_ssh [2025/07/26 14:30] (current) – Note for SSH on non-Linux partitions lbrpdx | ||
|---|---|---|---|
| Line 44: | Line 44: | ||
| <WRAP center round tip> | <WRAP center round tip> | ||
| - | Copy and paste work differently in PuTTY than in many other Windows programs. | + | Copy and paste work differently in PuTTY than in many other Windows programs. |
| - | + | ||
| </ | </ | ||
| ==== Password-less authentication ==== | ==== Password-less authentication ==== | ||
| + | |||
| + | === From a remote machine to Batocera === | ||
| Batocera can remember the SSH client' | Batocera can remember the SSH client' | ||
| + | |||
| + | <WRAP center round important> | ||
| + | This section assumes that your Batocera user data partition is | ||
| + | formatted Linux-native (ext4 by default, or btrfs). The //chmod// commands below won’t be applied correctly on FAT32 or NTFS partitions, and as a result passwordless SSH will fail.</ | ||
| - On Batocera, run the following in terminal: <code bash> | - On Batocera, run the following in terminal: <code bash> | ||
| + | chown root:root / /userdata/ / | ||
| + | chmod 755 / /userdata/ / | ||
| mkdir -p ~/.ssh | mkdir -p ~/.ssh | ||
| touch ~/ | touch ~/ | ||
| Line 59: | Line 65: | ||
| chmod 600 ~/ | chmod 600 ~/ | ||
| </ | </ | ||
| - | - On the client computer (the one which logs into Batocera via SSH), generate its public keys (if not already done so) and add the public Batocera SSH keys to its SSH configuration. | + | - On the client computer (the one which logs into Batocera via SSH), generate its SSH keypairs |
| * For most **Linux**-based distributions, | * For most **Linux**-based distributions, | ||
| ssh-keygen | ssh-keygen | ||
| Line 68: | Line 74: | ||
| That's it. You should be able now to SSH into your Batocera system from your SSH client without entering any password. | That's it. You should be able now to SSH into your Batocera system from your SSH client without entering any password. | ||
| + | |||
| + | <WRAP center round important> | ||
| + | Advanced users may be tempted to use '' | ||
| + | </ | ||
| + | |||
| + | === From Batocera to a remote machine === | ||
| + | |||
| + | It is also possible to set up passwordless authentication the other way around: From Batocera to am remote machine. Since Batocera does use the // | ||
| + | |||
| + | You can now copy the according public SSH key to your remote machine as already shown above, but the other way around of course. | ||
| ===== Basic SSH commands ===== | ===== Basic SSH commands ===== | ||
| Line 110: | Line 126: | ||
| If a path, or a filename, contains special characters or spaces, you will need to put either single quotes '' | If a path, or a filename, contains special characters or spaces, you will need to put either single quotes '' | ||
| - | Most commands can be immediately halted with '' | + | Most commands can be immediately halted with '' |
| <WRAP center round tip> | <WRAP center round tip> | ||
| Line 162: | Line 178: | ||
| * '' | * '' | ||
| * '' | * '' | ||
| - | * '' | + | * '' |
| + | * '' | ||
| + | * '' | ||
| --> How to install btop on Batocera v33 and earlier# | --> How to install btop on Batocera v33 and earlier# | ||
| Line 229: | Line 247: | ||
| --version | --version | ||
| --update | --update | ||
| - | default: stable, you can type --update | + | default: stable, you can type --update |
| --overlay | --overlay | ||
| Line 295: | Line 313: | ||
| Overclocking your hardware could cause irreversible damage and/or erratic behavior, this is at your own risk. If any issues occur after setting this, this should be the first thing to be returned to default. | Overclocking your hardware could cause irreversible damage and/or erratic behavior, this is at your own risk. If any issues occur after setting this, this should be the first thing to be returned to default. | ||
| </ | </ | ||
| - | * '' | + | * '' |
| - | * '' | + | * '' |
| * '' | * '' | ||
| * '' | * '' | ||
- access_the_batocera_via_ssh.1679025900.txt.gz
- Last modified: 3 years ago
- by maximumentropy