Skip to content

Conversation

@Lukasa
Copy link
Contributor

@Lukasa Lukasa commented May 11, 2020

Motivation:

When we receive the SSH_MSG_UNIMPLEMENTED it's because we sent a message
the remote peer does not understand. We can't do much about this, but we
can construct an error that is clearer about what exactly happened
instead of using a generic protocol error.

Modifications:

  • Better erroring on receipt of SSH_MSG_UNIMPLEMENTED.

Result:

Users will be less confused if this happens.

Resolves #21.

@Lukasa Lukasa requested review from Joannis and artemredkin May 12, 2020 07:43
@Joannis
Copy link
Contributor

Joannis commented May 12, 2020

The unimplemented response is not deserialised. I think that adding the attached sequence id is of added value when debugging the SSH client.

@Lukasa
Copy link
Contributor Author

Lukasa commented May 12, 2020

The deserialisation was implemented a while ago, so I didn't need to write it here.

@Joannis
Copy link
Contributor

Joannis commented May 12, 2020

I'll grab a cup of coffee. That makes sense.

@Lukasa
Copy link
Contributor Author

Lukasa commented May 12, 2020

We now log the sequence ID as well.

Motivation:

When we receive the SSH_MSG_UNIMPLEMENTED it's because we sent a message
the remote peer does not understand. We can't do much about this, but we
can construct an error that is clearer about what exactly happened
instead of using a generic protocol error.

Modifications:

- Better erroring on receipt of SSH_MSG_UNIMPLEMENTED.

Result:

Users will be less confused if this happens.
@Lukasa Lukasa merged commit b91c8e8 into apple:master May 13, 2020
@Lukasa Lukasa deleted the cb-error-on-unimplemented branch May 13, 2020 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add better handling for SSH_MSG_UNIMPLEMENTED

3 participants