Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add podman remote tutorial #8457

Merged
merged 3 commits into from
Aug 15, 2024
Merged

Conversation

cdrage
Copy link
Contributor

@cdrage cdrage commented Aug 13, 2024

docs: add podman remote tutorial

What does this PR do?

Screenshot / video of UI

N/A, see markdown

What issues does this PR fix or reference?

Closes #8280

How to test this PR?

N/A, docs

Signed-off-by: Charlie Drage [email protected]

@cdrage cdrage requested review from slemeur, benoitf and a team as code owners August 13, 2024 20:45
@cdrage cdrage requested review from dgolovin, deboer-tim and gastoner and removed request for a team August 13, 2024 20:45
@cdrage cdrage force-pushed the add-remote-doc branch 4 times, most recently from f16aac5 to 0f643a1 Compare August 13, 2024 20:50

**Ed25519** keys, an **SSH** connection, and an enabled **Podman Socket** are required for remote access.

RSA keys are _not supported_; Ed25519 keys are the recommended and only current method to set up a remote connection.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have the upstream issue we could add as a footnote here ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @benoitf


**Ed25519** keys, an **SSH** connection, and an enabled **Podman Socket** are required for remote access.

RSA keys are _not supported_; Ed25519 keys are the recommended and only current method to set up a remote connection.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
RSA keys are _not supported_; Ed25519 keys are the recommended and only current method to set up a remote connection.
[RSA keys are not supported](https://github.com/mscdex/ssh2/issues/1375); Ed25519 keys are the recommended and only current method to set up a remote connection.

Copy link
Collaborator

@benoitf benoitf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To me, there is a blur line in the documentation.

From Podman Desktop side, I would expect a first part explaining how Podman Deskop will filter/connect and any restriction to connect to all podman system connection

and a different section on how to enable remote access if I have a VM/machine using podman.

Because here it seems we're more advertising how to do the setup of Podman which is more a 'podman feature'


1. Enable Podman Remote in the Podman **Settings**:

![Enable the remote setting](img/remote.png)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wondering if we should have now both light and dark images so depending on the theme being used I'll see the correct image
https://docusaurus.io/docs/markdown-features/assets


![Enable the remote setting](img/remote.png)

2. Generate a local Ed25519 key:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
2. Generate a local Ed25519 key:
2. Generate a local ed25519 key:

$ ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519
```

3. Copy your **public** Ed25519 key to the server:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
3. Copy your **public** Ed25519 key to the server:
3. Copy your **public** ed25519 key to the server:

Comment on lines 45 to 54
4. Enable the Podman socket on the remote connection:

By default, the podman.socket is **disabled** in Podman installations. Enabling the systemd socket allows remote clients to control Podman.

```sh
$ systemctl enable podman.socket
$ systemctl start podman.socket
```
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add a command to check if the socket or the service is there.


This functionality is enabled by connecting via SSH to the Podman socket on the remote host.

**Ed25519** keys, an **SSH** connection, and an enabled **Podman Socket** are required for remote access.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
**Ed25519** keys, an **SSH** connection, and an enabled **Podman Socket** are required for remote access.
**ed25519** keys, an **SSH** connection, and an enabled **Podman Socket** are required for remote access.

Comment on lines +11 to +15
Podman Desktop can manage remote Podman connections. This is facilitated through a list of connections using the command `podman system connection ls`.

Containers can be created, started, stopped, and deleted as if managed locally.

This functionality is enabled by connecting via SSH to the Podman socket on the remote host.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add a section enlightening that it'll work only for ssh connections of podman system connection so if you're using a remote connection being a path to another directory, Podman Desktop won't connect to it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Next sentence says that ed key, ssh connection and an enabled podman socket is required, so it implies folder / other directory wont work, only SSH.

@cdrage
Copy link
Contributor Author

cdrage commented Aug 14, 2024

To me, there is a blur line in the documentation.

From Podman Desktop side, I would expect a first part explaining how Podman Deskop will filter/connect and any restriction to connect to all podman system connection

and a different section on how to enable remote access if I have a VM/machine using podman.

Because here it seems we're more advertising how to do the setup of Podman which is more a 'podman feature'

Agreed, good if I instead re-order and have basically the first part of the procedure being "Enable Remote connections and you'll see any remote connections propagate on Podman Desktop GUI, etc."?

The rest can be the "podman" setup.

@benoitf
Copy link
Collaborator

benoitf commented Aug 14, 2024

@cdrage yes

@cdrage cdrage force-pushed the add-remote-doc branch 2 times, most recently from 301625f to 4bec8e8 Compare August 14, 2024 19:28
### What does this PR do?

* Adds a podman remote tutorial to the website so you can learn how to
  access remote systems. This is taken from PR descriptions /
  explanations as well as the podman remote tutorial doc: https://github.com/containers/podman/blob/main/docs/tutorials/remote_client.md

### Screenshot / video of UI

<!-- If this PR is changing UI, please include
screenshots or screencasts showing the difference -->

N/A, see markdown

### What issues does this PR fix or reference?

<!-- Include any related issues from Podman Desktop
repository (or from another issue tracker). -->

Closes containers#8280

### How to test this PR?

<!-- Please explain steps to verify the functionality,
do not forget to provide unit/component tests -->

N/A, docs

Signed-off-by: Charlie Drage <[email protected]>
Signed-off-by: Charlie Drage <[email protected]>
@cdrage
Copy link
Contributor Author

cdrage commented Aug 15, 2024

@cdrage yes

Updated 👍

@cdrage cdrage enabled auto-merge (squash) August 15, 2024 21:58
@cdrage cdrage merged commit 6b24b21 into containers:main Aug 15, 2024
11 checks passed
@podman-desktop-bot podman-desktop-bot added this to the 1.13.0 milestone Aug 15, 2024
amisskii pushed a commit to amisskii/podman-desktop that referenced this pull request Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document podman remote features
4 participants