Skip to content

during disco init, "root@(domain)" password requested even though it shouldn't #97

@gregsadetsky

Description

@gregsadetsky

repro: have many ssh auth keys in the ssh agent
when the disco init is happening with an ec2 machine, at some point disco init will try to reconnect as root, but if the ssh agent has many ssh keys, (I think?) it will pass too many of them and the ssh server might say "too many wrong auth attempts"

ie even when we're connecting over ssh and passing a private root key (that disco init just generated!), the other ssh agent keys are also being passed... and the ssh server, seeing many wrong keys, will refuse the connection

then disco init thinks that it didn't connect and ask for the root password...

"proof" that this is the problem: running ssh-add -D to clear out all of the ssh agent keys solves the problem and the same disco init ubuntu@(ec2 machine domain) ends up working

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