Skip to content

paramiko ssh doesn't support proxying encrypted ssh keys #46

@igalic

Description

@igalic

when trying to connect to a jail

ERROR: Failed to connect to ez-instance:i_eena_me (10.0.0.2)
ERROR: username: 'root'
ERROR: port: 22
ERROR: sock: <paramiko.proxy.ProxyCommand object at 0x7f2a80a6bed0>
ERROR: Couldn't validate fingerprint for ssh connection.
ERROR: Private key file is encrypted
ERROR: Is the instance finished starting up?

or configure it:

PLAY [jailhost-i_eena_me] ***************************************************** 

GATHERING FACTS *************************************************************** 
ERROR: Failed to connect to ez-instance:i_eena_me (10.0.0.2)
ERROR: username: 'root'
ERROR: port: 22
ERROR: sock: <paramiko.proxy.ProxyCommand object at 0x7f46fb3ef6d0>
fatal: [jailhost-i_eena_me] => Couldn't validate fingerprint for 'ez-instance:i_eena_me': Private key file is encrypted

TASK: [infopro-digital.apache | APACHE | Include OS-specific variables] ******* 
FATAL: no hosts matched or all hosts have already failed -- aborting

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions