Skip to content

Identity file not used when using sake ssh #63

@zasdaym

Description

@zasdaym
  • I have the latest version of sake
  • I have searched through the existing issues

Info

  • OS
    • Linux
    • Mac OS X
    • Windows
    • other
  • Version: 0.15.1

  • Authentication:

    • Identity Key + Passphrase
    • Identity Key
    • Passphrase
    • SSH Agent
  • Key Type:

    • rsa
    • ed25519
    • other
  • Key Format:

    • rfc4716
    • pkcs8
    • pem

Problem / Steps to reproduce

When using identity_file on sake.yaml, sake ssh won't use the identity file.

Content of sake.yaml:

disable_verify_host: true

servers:
  srv1:
    host: x.x.x.x
    user: root
    identity_file: private.pem

Running sake ssh srv1 will result in failed authentication, while sake run ping -s srv1 is OK.

sake ssh srv1
root@x.x.x.x: Permission denied (publickey).

sake run ping -s srv1

TASK [ping: Pong] *************************************************************************************************************************************************************

x.x.x.x | pong

RECAP *************************************************************************************************************************************************************************

 x.x.x.x      ok=1  unreachable=0  ignored=0  failed=0  skipped=0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions