Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Fixing an SSH communication issue #26

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Geforcex250
Copy link

Fixing the issue when the "env" RequestType is sent by the client, resulting in a client disconnection by the server.

Fixing the issue when the "env" RequestType is sent by the client, resulting in a client disconnection by the server.
@@ -75,7 +90,11 @@ private void HandleMessage(ChannelRequestMessage message)
{
RecipientChannel = FindChannelByServerId<Channel>(message.RecipientChannel).ClientChannelId
});
throw new SshConnectionException(string.Format("Unknown request type: {0}.", message.RequestType));

if (!IsRequestTypeTolerated(message))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your coding and sorry for deferred reply!
Here, could you please print message.RawBytes to show what the package actually is. To help me understanding the mechanism.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants