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/04/18 05:18] – no pleases atari | access_the_batocera_via_ssh [2025/07/26 14:30] (current) – Note for SSH on non-Linux partitions lbrpdx | ||
|---|---|---|---|
| Line 48: | Line 48: | ||
| ==== 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 57: | 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 66: | 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 160: | Line 178: | ||
| * '' | * '' | ||
| * '' | * '' | ||
| - | * '' | + | * '' |
| + | * '' | ||
| + | * '' | ||
| --> How to install btop on Batocera v33 and earlier# | --> How to install btop on Batocera v33 and earlier# | ||
| Line 227: | Line 247: | ||
| --version | --version | ||
| --update | --update | ||
| - | default: stable, you can type --update | + | default: stable, you can type --update |
| --overlay | --overlay | ||
| Line 293: | 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.1681795106.txt.gz
- Last modified: 3 years ago
- by atari