Skip to content

Bug when using sake with .ssh/config #56

@vunhatchuong

Description

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

Info

  • OS
    • Linux
  • Version: 0.15.0

  • Authentication:

    • Identity Key
  • Key Type:

    • ed25519
  • Key Format:

    • rfc4716

Problem / Steps to reproduce

sake.yaml:

servers:
  myserver:
    host: server

tasks:
  ping:
    desc: Pong
    cmd: echo "pong"

~/.ssh/config:

Host server
  HostName 123.123.123.123
  User root
  IdentityFile ~/.ssh/ailab_ed25519

sake run ping --all

Output:

error: open ~/.ssh/ailab_ed25519: no such file or directory
sake ssh myserver

Output:

ronny@123.123.123.123's password:

It picks up my PC name (ronny) instead of the the server username (root).


$ ssh-keygen -t ed25519 -C "ailab-server"
Generating public/private ed25519 key pair.
Enter file in which to save the key (/home/ronny/.ssh/id_ed25519): ailab_ed25519
Enter passphrase (empty for no passphrase):
Enter same passphrase again:

Passphrase is empty

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