SFTP Connection Failed

Hi,

I'm having a problem of connecting to my SFTP Server with latest Pycharm(2017.3.2). I am using a Mac and be able to SFTP using other applications(Filezilla). 

The SSH port on my Linux server is 222.

 

idea.log:

2018-01-12 15:41:40,160 [ 253547] WARN - i.remotebrowser.ServerTreeNode - Could not determine the type of file "sftp://MyServer:222/".
org.apache.commons.vfs2.FileSystemException: Could not determine the type of file "sftp://MyServer:222/".
at org.apache.commons.vfs2.provider.AbstractFileObject.getType(AbstractFileObject.java:1504)
at org.apache.commons.vfs2.provider.AbstractFileObject.isFile(AbstractFileObject.java:1689)
at org.apache.commons.vfs2.provider.sftp.SftpFileObject.doListChildrenResolved(SftpFileObject.java:462)
at org.apache.commons.vfs2.provider.AbstractFileObject.getChildren(AbstractFileObject.java:1142)
at org.apache.commons.vfs2.provider.AbstractFileObject.getChild(AbstractFileObject.java:1095)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool.createConnection(RemoteConnectionPool.java:192)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionManager.openConnection(RemoteConnectionManager.java:140)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionManager.openConnection(RemoteConnectionManager.java:84)
at com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerTreeContext.getConnection(ServerTreeContext.java:88)
at com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerTreeNode.computeFile(ServerTreeNode.java:280)
at com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerTreeNode.createChildren(ServerTreeNode.java:188)
at com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerTreeNode.reloadNecessaryDescendants(ServerTreeNode.java:533)
at com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerTreeNode.lambda$reloadNecessaryDescendantsAndUpdate$3(ServerTreeNode.java:497)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:315)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.commons.vfs2.FileSystemException: Could not connect to SFTP server at "sftp://MyServer:222/".
at com.jetbrains.plugins.webDeployment.connections.PatchedSftpFileSystem.getChannel(PatchedSftpFileSystem.java:107)
at org.apache.commons.vfs2.provider.sftp.SftpFileObject.statSelf(SftpFileObject.java:177)
at org.apache.commons.vfs2.provider.sftp.SftpFileObject.doGetType(SftpFileObject.java:112)
at org.apache.commons.vfs2.provider.AbstractFileObject.getType(AbstractFileObject.java:1495)
... 18 more
Caused by: com.intellij.ssh.SshTransportException: Auth fail
at com.intellij.ssh.impl.SshConnection.a(SshConnection.kt:91)
at com.intellij.ssh.impl.SshConnection.openChannel(SshConnection.kt:48)
at com.intellij.ssh.SshConnectionService.sftp(SshConnectionService.kt:170)
at com.jetbrains.plugins.webDeployment.connections.PatchedSftpFileSystem.getChannel(PatchedSftpFileSystem.java:57)
... 21 more
Caused by: com.jcraft.jsch.JSchException: Auth fail
at com.jcraft.jsch.Session.connect(Session.java:519)
at com.jcraft.jsch.Session.connect(Session.java:183)
at com.intellij.ssh.SshConnectionUtil.createSshSession(SshConnectionUtil.kt:143)
at com.intellij.ssh.impl.SshConnection.a(SshConnection.kt:84)
... 24 more

 

Thank you

 

 

 

5 comments

Getting the same problem after upgrading from 2017.2.? -> 2017.3.3
I also upgraded MacOS to 10.13.3 at the same time.
A coworker is also seeing this issue after downloading a PyCharm trial a few days ago.

I've also verified that sftp works normally using the same port and identity file
sftp -P 2 -i ~/.ssh/my_id_rsa [email protected]_remote_host

0

Do you use KeyPair method for auth type? Please check that username is saved under "Settings | Build... | Deployment "

0

Yes, I use Key Pair and have the username filled in. My current settings worked before upgrading as well. I get a very similar log output to the one at the top (omitting my actual hostname :P).

2018-02-05 17:16:06,949 [ 115840] WARN - loyment.ui.WebServerConfigForm - Could not determine the type of file "sftp://<my_host>:2/".
org.apache.commons.vfs2.FileSystemException: Could not determine the type of file "sftp:/<my_host>:2/".

0

After changing my auth type to "OpenSSH config and authentication agent". The problem solved, I now can connect to my SFTP server.

0

Please sign in to leave a comment.