-
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
Remote client on MacOS is not using ssh-agent and is prompting to unlock keys everytime #7806
Comments
@jwhonce PTAL |
@ashley-cui PTAL |
A friendly reminder that this issue had no activity for 30 days. |
@ashley-cui Did you get a chance to look at this? Seems pretty key that we add this support. |
@rhatdan Haven't taken a look yet, will try to reproduce/do a little digging today |
tried looking into this, but ran into this issue: #8323 going to dig further.. |
I can confirm this bug which renders macos podman client useless, as I do need and want to run containers on my remote linux host, the same way I do with docker. Let me know if I can help as macos happens to be my main desktop ( |
After wasting more than two hours trying to find any way to make podman from macos connect to a linux box I have to surrender. It seams that podman silently fails to load a ssh key even if given unencrypted and debug logging does not help at all:
|
@ashley-cui @jwhonce PTAL |
Just to confirm this is still an issue in Big Sur (11.0.1) with : podman: stable 2.2.0 (bottled) and (server side ) podman-2.1.1-10.el8.x86_64 |
Yep, it does and combined with #8499 bug creates a bad user experience. Lucky the incorrect "Login" prompt was fixed on Friday but we still have these two issues to address: failure to load RSA keys and failure to reuse agent loaded keys. @mikewilks Keep in mind that if you see "Login password", this is not the key key password. That bug was fixed in master so you should be able to login without prompt unless you manually specified CONTAINER_SSHKEY. Apparently as soon you define a particular key using CONTAINER_SSHKEY, you will get a key password prompt from podman regardless the fact that the same key may already be loaded by the ssh agent. That is annoying as it forces users to make use of unsafe security practices when they have multiple keys. We all know that ssh authentication allows verification of a limited number of ssh keys before the client is rejected, usually 3 or less. Further attempts in short period of time could even ban the client. This means that you may want to hint the ssh application which particular key to use with each ssh server, to avoid sending wrong keys (also performance impact). Bad part is that presence of CONTAINER_SSHKEY does disables the ssh agent. CONTAINER_SSHKEY acs mainly like |
@ssbarnea I don't have a fix for the RSA issue but #8676 prioritizes the ssh-agent keys over a matching /cc @ashley-cui is helping me test different remote client setups. FYI, podman uses the following prompts:
|
Thanks for the updates on these. I already added an ssh-ed25519 to my list of keys so the RSA issue is not really pressing. I would say that the lack of error was likely more annoying than the lack of support for RSA. I support looking for agent keys before using provided key because this avoids the case where it may ask for key passphrase when in fact the same key was loaded inside the agent. I will try to test the linked change myself and comment on it. |
@ssbarnea we have this open right now: #8676 This patch should allow podman to use the ssh-agent. The problem right now is we have a catch 22 (even with the new patch) where we need the passphrase to read the identity file to determine if that file is already in the ssh-agent ... to use without a passphrase. |
I have a podman server running in an Ubuntu 20.04 multipass vm, and this works on macOS:
If I use CONTAINER_HOST and CONTAINER_SSHKEY instead, I'm prompted for a passphrase |
A friendly reminder that this issue had no activity for 30 days. |
That bot is annoying. the bug was not fixed, and because there was no release made in between I am not able to test the patch. |
@ssbarnea The bot is necessary to give us a kick in the pants to look at aging issues. Otherwise these issues would just drift away. Everytime one fires I re-read the issue and attempt to get it attention or close the issue if it has been fixed. IE A necessary evil. |
@baude FYI |
@rhatdan As long you do not burndown is may be a good approach. To be honest, I do find podman project as being one of the most dynamic ones. |
A friendly reminder that this issue had no activity for 30 days. |
@baude PTAL |
A friendly reminder that this issue had no activity for 30 days. |
@baude while in MAC World could you look at this? |
I am unable to reproduce this bug with podman 3.0.1 on macos, I have my ssh keys encrypted at rest and if it would not work I would not be able to use podman cli, which I do. |
@ssbarnea @baude I'm running Podman 3.1.0 and I just stumbled upon it. I have |
For posterity, I've run into this in v3.3.1 on macOS. I first ran |
Could you open a new issue for this, if this is something we should fix. |
@tashian I am not sure how you ended up with this because it appears to work for me, and my ssh keys are available only through the agent (they are encrypted at rest). Maybe the |
still reproducible on podman-remote version 3.4.1 podman-remote system connection add xxx --identity ~/.ssh/id_rsa ssh://xxxx/run/user/1000/podman/podman.sock |
Please open an new issue. |
Yes, omitting "--identity" works |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
The MacOS remote client is not making use of the ssh-agent and is prompting for the password to unlock the SSH key every time podman is used.
Steps to reproduce the issue:
brew install podman, config remote podman according to https://www.redhat.com/sysadmin/podman-clients-macos-windows
ssh-add key on the Mac
run any podman command (podman ps for example) multiple times - each time it will prompt for the unlock password
Describe the results you received:
podman prompts for the unlock password for the SSH key every time
Describe the results you expected:
podman not to prompt for the unlock password and to use the ssh-agent
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
MacOS Catalina - Version 10.15.6 (19G2021)
The text was updated successfully, but these errors were encountered: