-
Notifications
You must be signed in to change notification settings - Fork 15
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
paramiko ssh doesn't support proxying encrypted ssh keys #46
Comments
The "Private key file is encrypted" error is often misleading. We don't rely on ssh-agent forwarding. We connect directly to the host and use a proxy command from there to the jail. My own key is encrypted and I only need my local ssh-agent with no forwarding. Most of the time there is another issue causing the connection problems. Most likely authorized_keys in the jail doesn't have your key. Maybe the wrong username is used, or sshd isn't running in the jail. I also had that issue when I still used a DSA key and newer sshd disabled their use. |
hrm… there is, indeed, no ssh daemon running
|
uhm, there is:
|
yes! thanks. my eyes are tired already… |
when trying to connect to a jail
or configure it:
paramiko fails with encrypted keys, because it doesn't forward the ssh agent settings.
This is something btw is something ansible considered: ansible/ansible#4100 but then declined, because their paramiko support is deprecated.
The text was updated successfully, but these errors were encountered: