-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
podman --url ssh:// fails wierdly #17452
Comments
I think the default port thing for ssh was already fixed in 4.4. #16526 While we could assume some more defaults I think it makes more sense to just use |
But then I still have to supply those full URLs, no? I think it's nicer if I don't have to know things like the UID on a remote machine. |
A friendly reminder that this issue had no activity for 30 days. |
Care to open a PR to handle this? |
If you mean me, then no. I can't justify the effort to learn the podman codebase and (a small subset of) golang just to fix this wart. |
I agree that not having to know the numerical remote user ID would be nice. |
Issue Description
podman --url ssh://...
fails to work in strange ways.Steps to reproduce the issue
I have the podman socket listening on localhost. To explore how podman/ssh work, I try connecting to it via ssh.
To start with, unix: does not have good defaults. I can get it to work with
But things like
or
Fail with
This is a minor usability problem as I have to remember that podman socket path template and supply my uid. I think it could be guessed for unix://user@.
Next, for ssh:
$ podman --url=ssh://localhost ps Error: strconv.Atoi: parsing "": invalid syntax
$ podman --url=ssh://avi@localhost/ ps Error: strconv.Atoi: parsing "": invalid syntax
I guess it wants the port, but really it should be defaulted.
Now I need to supply the path. Given it's a remote path, I need to know my remote uid.
This works:
But one needs to supply the default ssh port, the default podman socket path, and their remote uid, which they really shouldn't need to.
Describe the results you received
Intermingled with the reproducer.
Describe the results you expected
--url ssh://avi@localhost
works and no internal error messages.podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
No
Additional environment details
Fully updated Fedora 37.
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: