SFTP connection failure after first trial
Answered
I am using Intellij Idea for my project that uses SFTP for file transfer but I am having a problem about SFTP. When I start the IDE and run the program it successfully establishes connection and everything is fine. But when I stop and run the program again, It throws the following error. When I restart the IDE, it again works successfully. I do not use ide built-in server configuration or sth. What could cause this?
Error:
org.apache.commons.vfs2.FileSystemException: Could not determine the type of file "sftp://test...."
...
Could not connect to SFTP server at "srftp://test...."
....
Pipe closed
....
Please sign in to leave a comment.
What key exchange algorithm is in use? Several of them are not supported, for example curve25519-sha256.
If it is not the case, please elaborate on your environment. Do you use ssh-agent?
Would it be possible to add the following lines to "Help | Debug Log Settings", restart IDE, reproduce the issue and share logs?
Here are the lines:
I think problem is caused by ports (ide does not kill ports after stopping process). I do not have that kind of configuration and cannot share log file as it occurs on private computer.
opened (not closed) ports is most probably a consequence.
Something could prevent IntelliJ IDEA from closing it. This case is an example of such behavior: https://youtrack.jetbrains.com/issue/WI-46641
Note the following part of logs:
So, logs are needed to troubleshoot the case further. You can inspect and anonymize them before sending.