sake icon indicating copy to clipboard operation
sake copied to clipboard

Identity file not used when using `sake ssh`

Open zasdaym opened this issue 1 year ago • 0 comments

  • [x] I have the latest version of sake
  • [x] I have searched through the existing issues

Info

  • OS
    • [ ] Linux
    • [x] Mac OS X
    • [ ] Windows
    • [ ] other
  • Version: 0.15.1

  • Authentication:

    • [ ] Identity Key + Passphrase
    • [x] Identity Key
    • [ ] Passphrase
    • [ ] SSH Agent
  • Key Type:

    • [x] rsa
    • [ ] ed25519
    • [ ] other
  • Key Format:

    • [ ] rfc4716
    • [ ] pkcs8
    • [x] 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
[email protected]: 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

zasdaym avatar Nov 11 '24 14:11 zasdaym