Closed 0x4c756e61 closed 8 months ago
This is currently not possible with the underlying podman library. See https://github.com/vv9k/podman-api-rs/issues/142.
A workaround could be to run podman under a port on the remote machine on a loopback device and then establish a ssh tunnel on the local machine to the remote machine.
For example:
On the remote machine:
podman system service --time=0 tcp://127.0.0.1:7676
On the local machine where pods runs:
ssh -N user@remote-machine -L 9876:127.0.0.1:7676
The you can use http://127.0.0.1:9876
as URL in pods to connect through the ssh tunnel.
Well that's pretty unfortunate, I guess this works just as well, despite being a hacky fix.
Closing this issue as fixed, it may get reopened once podman-api-rs supports ssh (or just podman's connection system).
Thanks
Rather than making the user manually set up an SSH tunnel with port forwarding, could the podman-desktop app provide a GUI to do that for them?
Describe your feature request
I would be great if pods was able to use ssh to connect to a server, or directly integrate with the podman connections already saved.
For instance I use this string to connect to my remote podman instance
ssh://podmanctrler@192.168.1.102:22/run/user/1000/podman/podman.sock
which works with podman but not pods:Provided scheme ssh is not supported