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

Misleading error message when cf ssh is used with too-large -i value #1130

Closed
davwards opened this issue May 3, 2017 · 3 comments
Closed

Comments

@davwards
Copy link

davwards commented May 3, 2017

Command

Given I've deployed my-app with 2 instances:

cf ssh my-app -i 2

What occurred

Command fails with:

"Error opening SSH connection: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain"

What you expected to occur

An error message letting me know that I referenced an app instance that doesn't exist

CLI Version

cf version 6.26.0+9291ea37e.2017-05-02

CC API Endpoint Version

api version: 2.80.0

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/144798273

The labels on this github issue will be updated when the story is started.

@dkoper
Copy link

dkoper commented May 4, 2017

I believe what adds to the confusion is that the help text doesn't specify what the -i value defaults to, which would clarify the index starts at 0, not 1. We'll look at improving that after reviewing your PR.

@dkoper
Copy link

dkoper commented Jun 9, 2017

Resolved in 6.27.0. Thanks for your contribution.
https://github.com/cloudfoundry/cli#downloads

@dkoper dkoper closed this as completed Jun 9, 2017
@cf-gitbot cf-gitbot removed the accepted label Jun 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants