SSH and SFTP timing out randomly

Hi, I'm having issues with SSH and SFTP in Phpstorm. They sometimes work and other times they don't. The issue is usually resolved after a restart of the IDE.

Another strange situation sometimes happens if I go to Tools > Deployment then test a connection, it times out, but then if I click on the ... button on the SSH configuration row and then test it from the proceeding window, then the connection works successfully. I haven't set anything as "Visible only for this project"

Please can you let me know how we can debug this together.

Thanks

0
6 comments

Please try settings the keep-alive interval to 10 seconds in the SSH configuration properties.
If it doesn't help, please add #com.intellij.ssh, #sshj, and #com.jetbrains.plugins.webDeployment to Help | Diagnostic Tools | Debug Log Settings, reproduce the issue, and then share your logs (Help | Collect Logs and Diagnostic Data) using our upload service.

0

Hello, thank you for your response. The keep-alive setting change did not work. I turned on the logging provided and have attached the outputted log file. Upload ID: 2022_12_12_cpYXyERTg2bV1VgnwqY464

0

Thank you for providing the logs! However, I don't see a single successful attempt to connect to the *.1.37 server.
You mentioned that the issue goes away after you restart the IDE; is it valid for this server as well?

0

What can I say, I made it work, it obviously wasn't logged. This problem has existed for over a year, I have put up with it, tried to report it in the past, I'm surprised the bug still exists.

Like I say, for multiple hosts this happens, when I test connection from the SSH configurations page, they work, but not if I close that window and go back to the Deployment window.

0

And yes, it does work when I restart, this occurs again for multiple hosts I have setup, then the issue will reappear after some time.

0

I don't see any hints on why that might be happening in the logs, unfortunately. I don't see any similar reports on the tracker either.
Before I submit it to the issue tracker, do you have an antivirus and/or a firewall? If you do, could you please check if disabling them helps when you encounter the issue again?

0

Please sign in to leave a comment.