Deployment SFTP test fails but SSH connection succeeds Follow
I am trying to setup a deployment connection to a remote server.
Using the credentials I have been given I can use WinSCP to transfer files. I can also start a SSH terminal in Intellij using the details I have set up for the connection in the Deployment options
However when I go to File/Settings/Deployment and Test SFTP connection it fails with a 'could not connect to server' message. I am using Username/Password authentication if it makes any difference.
Please sign in to leave a comment.
We need to take a look at the logs to figure out what's happening there.
#com.intellij.sshto Help | Debug Log Settings, restart IDEA, try to connect to the server again and then collect the logs bundle with (Help | Compress Logs).
You can submit the logs within a support ticket as probably you wouldn't want to share them publicly. Please share the ticket ID here so that I could assign it to myself.
Hello, I have met a similar problem with PyCharm where a SSH terminal can successfully run to link my remote server, while the deployment failed to connect the server under SFTP. It reported "EOF while reading package". I have submitted a request on your forum to discuss this issue.
This also happens in version 2020.2 of pycharm.
See my latest bug report: the host name needs to be lower case only (both in PyCharm and your .ssh/config or similar file). Then it works and connects.
Andreas, yep, we are not aware that the hostname can be case-sensitive because of the SSH config: https://youtrack.jetbrains.com/issue/IDEA-241761
Here is log from PHPStorm:
Puciapuciarysiu See this comment: https://youtrack.jetbrains.com/issue/PY-37633#focus=Comments-27-3686198.0-0
And comment inside the mentioned bug.