-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 machine ssh failed in fedora for rootless #11731
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
machine
Comments
In rootless mode, podman enter userns which ssh complain abount permission.
|
pendulm
added a commit
to pendulm/podman
that referenced
this issue
Sep 24, 2021
add option to not read system ssh configurations Fixes: containers#11731 Signed-off-by: pendulm <lonependulm@gmail.com>
Yes it should not need to join the usersns. All machine commands already disabled the normal podman setup. I guess this should work: $ git diff
diff --git a/pkg/rootless/rootless_linux.c b/pkg/rootless/rootless_linux.c
index 4d8443fcb..6ce4b1e29 100644
--- a/pkg/rootless/rootless_linux.c
+++ b/pkg/rootless/rootless_linux.c
@@ -212,6 +212,7 @@ can_use_shortcut ()
continue;
if (strcmp (argv[argc], "mount") == 0
+ || strcmp (argv[argc], "machine") == 0
|| strcmp (argv[argc], "search") == 0
|| (strcmp (argv[argc], "system") == 0 && argv[argc+1] && strcmp (argv[argc+1], "service") != 0))
{ |
Yes Please open a PR. |
the patch LGTM. @Luap99 please open a PR |
Luap99
added a commit
to Luap99/libpod
that referenced
this issue
Sep 27, 2021
The go logic already prevents podman from joining the userns for machine commands but the c shortcut code did not. [NO TESTS NEEDED] Fixes containers#11731 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
PR #11752 |
mheon
pushed a commit
to mheon/libpod
that referenced
this issue
Sep 29, 2021
The go logic already prevents podman from joining the userns for machine commands but the c shortcut code did not. [NO TESTS NEEDED] Fixes containers#11731 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
machine
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
podman machine works on Fedora 34, But failed when ssh login in the machine.
Steps to reproduce the issue:
In Fedora Linux 34
podman machine init
podman machine start podman-machine-default
podman machine ssh podman-machine-default
failed
Describe the results you received:
Bad owner or permissions on /etc/ssh/ssh_config.d/50-redhat.conf
Error: exit status 255
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:The text was updated successfully, but these errors were encountered: