SFTP gives error: EOF while reading Packet

I am trying to set up an SFTP deployment in PhpStorm 2021.2.2 (I originally tried in the latest EAP but reverted to release to test it wasn't an issue with that).

When I set up the deployment, I select SFTP and click on SSH configuration - this part works fine and the test connect without issue (whether I use Password, Key Pair, or OpenSSH Config and Authentication Agent) and get the message: "Connection to <mydomain>:22 Successfully Connected!"

So far, so good.

However, once I return to the deployment setup screen and test it there, there message is: "Test SFTP Connection. Connection to <mydomain> failed. EOF while reading packet"

It doesn't matter what changes I make on the deployment screen, the problem persists.

Anybody got any idea what I am doing wrong?

Comment actions Permalink

Unfortunately, it is hard to say anything for sure without checking logs first -- each scenario could be very different.

It would be great if you could enable the extended logging, reproduce the error and then collect log files and submit a support request.

To increase the deployment actions logging level, please add the following lines to the "Help > Diagnostic Tools > Debug Log Settings" section:

Afterwards, logs can be collected with the "Help > Collect Logs" menu option.

Comment actions Permalink

This can now be ignored or deleted as the problem was on the server side, allowing successful authentication but not actually allowing a proper connection.

However, it is misleading that the test under the SSH Configuration claims to connect successfully (when what it means is that it authenticated successfully). Yet, what appears to be the same test on the deployment screen, fails with an obscure error message.


Please sign in to leave a comment.