Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootstrap: If password or key file are required we should tell the flags to do so #8481

tas50 opened this issue May 7, 2019 · 0 comments


None yet
1 participant
Copy link

commented May 7, 2019

If you try to bootstrap a node using a username in the URI you will receive a train error instead of a friendly knife error. The user shouldn't see train errors since they don't need to know what handles the transport under the hood. Additionally if there are flags missing we should make sure to let people know what flags they can use so they don't have to hit help or the docs site on their own.

bundle exec knife bootstrap ssh:// --channel unstable -N tim_test
Creating new client for tim_test
Creating new node for tim_test
Connecting to
ERROR: Train::ClientError: Your SSH Agent has no keys added, and you have not specified a password or a key file

Also: Knife call it an identity file vs. train calling it a key file, which further confuses the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.