Skip to content

Display full output when there's an SSH connection error #5378

@johnbillion

Description

@johnbillion

Feature Request

Describe your use case and the problem you are facing

When the connection to a remote server (with the --ssh flag or an alias) results in an error being returned from the server, the error message from the remote server is not shown.

For example, connecting to a server with invalid credentials can return the following error but this is never shown to the user:

Received disconnect from UNKNOWN port 65535:2: Too many authentication failures
Disconnected from UNKNOWN port 65535

Instead, WP-CLI only shows this error:

Error: Cannot connect over SSH using provided configuration.

Describe the solution you'd like

If a server returns an error, WP-CLI should output it.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions