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

Connect times out when server rejects initializing subsystem #308

Closed
drieseng opened this issue Sep 29, 2017 · 0 comments
Closed

Connect times out when server rejects initializing subsystem #308

drieseng opened this issue Sep 29, 2017 · 0 comments
Labels

Comments

@drieseng
Copy link
Member

drieseng commented Sep 29, 2017

We currently do not check whether the request to initialize the subsystem is successful.

In case of SFTP, we try to send a SSH_FXP_INIT request wait for the remote window size to be adjusted if the server rejected the subsystem request.

Eventually the operation times out, and a SshOperationTimeoutException is thrown.

We need to check whether the request to initialize the subsystem is successful, and if not immediately throw an SshException and close the channel and SSH session.

@drieseng drieseng added the bug label Sep 29, 2017
@drieseng drieseng added this to the 2017.0.0-beta1 milestone Oct 16, 2017
@drieseng drieseng changed the title SftpClient: Connect times out when server rejects initializing sftp subsystem Connect times out when server rejects initializing subsystem Nov 15, 2017
@drieseng drieseng modified the milestones: 2017.0.0-beta1, 2020.0.0-beta1 Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant