summaryrefslogtreecommitdiff
path: root/docs/tutorials
diff options
context:
space:
mode:
authorChristopher 'm4z' Holm <them4z@googlemail.com>2022-06-08 17:42:23 +0200
committerGitHub <noreply@github.com>2022-06-08 17:42:23 +0200
commit700248bfef7bf72dccad7107ac6ee0f5a2f8ccfe (patch)
treee6603ca532ff4f02cd8a33a20fa5471d12c7cb7f /docs/tutorials
parent864d46c77ef76241b6f0e0c725a08ec28e7e32bc (diff)
downloadpodman-700248bfef7bf72dccad7107ac6ee0f5a2f8ccfe.tar.gz
podman-700248bfef7bf72dccad7107ac6ee0f5a2f8ccfe.tar.bz2
podman-700248bfef7bf72dccad7107ac6ee0f5a2f8ccfe.zip
Update remote_client.md
Explicitly include copy-and-paste code line for `ssh-copy-id` because people like myself will easily forget this part and (repeatedly) overlook it in the text. :blush: Supersedes #14445 and attempts to address review by @TomSweeneyRedHat there (but enforcing a filename instead of using a placeholder). Signed-off-by: Christopher 'm4z' Holm <them4z@gmail.com> Signed-off-by: Christopher 'm4z' Holm <them4z@googlemail.com>
Diffstat (limited to 'docs/tutorials')
-rw-r--r--docs/tutorials/remote_client.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/tutorials/remote_client.md b/docs/tutorials/remote_client.md
index ef7160f6c..27b97e6f5 100644
--- a/docs/tutorials/remote_client.md
+++ b/docs/tutorials/remote_client.md
@@ -60,9 +60,12 @@ sudo systemctl enable --now -s sshd
#### Setting up SSH
Remote Podman uses SSH to communicate between the client and server. The remote client works considerably smoother using SSH keys. To set up your ssh connection, you need to generate an ssh key pair from your client machine. *NOTE:* in some instances, using a `rsa` key will cause connection issues, be sure to create an `ed25519` key.
```
-ssh-keygen -t ed25519
+ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519
+```
+Your public key by default should be in your home directory under `~/.ssh/id_ed25519.pub`. You then need to copy the contents of `id_ed25519.pub` and append it into `~/.ssh/authorized_keys` on the Linux server. You can automate this using `ssh-copy-id`:
+```
+ssh-copy-id -i ~/.ssh/id_ed25519.pub 192.168.122.1
```
-Your public key by default should be in your home directory under ~/.ssh/id_ed25519.pub. You then need to copy the contents of id_ed25519.pub and append it into ~/.ssh/authorized_keys on the Linux server. You can automate this using ssh-copy-id.
If you do not wish to use SSH keys, you will be prompted with each Podman command for your login password.