Skip to content

Commit a93c1d7

Browse files
authored
Revise SSH configuration steps
Updated SSH setup instructions for Hetzner Storage Box.
1 parent 351cf72 commit a93c1d7

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,15 +283,23 @@ The most reliable way for the script to connect to a remote server is via an SSH
283283
(Press Enter through all prompts).
284284

285285
2. **Add your public key** to the remote server's authorized keys. For a Hetzner Storage Box, paste the contents of `sudo cat /root/.ssh/id_ed25519.pub` into the control panel.
286+
287+
For Hetzner Storagebox use the `ssh-copy-id` command (replace `u123456` and `u123456-sub4`):
286288
287-
3. **Create an SSH config file** to define an alias for your connection:
289+
```sh
290+
# Hetzner Storage Box requires the `-s` flag. Replace `u123456` and `u123456-sub4`
291+
292+
sudo ssh-copy-id -p 23 -s [email protected]
293+
```
294+
295+
5. **Create an SSH config file** to define an alias for your connection:
288296
289297
```sh
290298
# Open the file in an editor
291299
sudo nano /root/.ssh/config
292300
```
293301
294-
4. **Add the following content**, adjusting the details for your server:
302+
6. **Add the following content**, adjusting the details for your server:
295303
296304
```bash
297305
Host storagebox
@@ -303,7 +311,7 @@ The most reliable way for the script to connect to a remote server is via an SSH
303311
ServerAliveCountMax 240
304312
```
305313
306-
5. **Set secure permissions** and test the connection:
314+
7. **Set secure permissions** and test the connection:
307315
308316
```sh
309317
sudo chmod 600 /root/.ssh/config

0 commit comments

Comments
 (0)