Cannot connect to remote host (FTP/SFTP)

Hi,

I installed PhpStorm, but I cannot connect to remote host. Doesn't matter if I try FTP with user/password or SFTP with key-file.

We are using a proxy. I did configure it under "HTTP Proxy" in settings. Could it be that this config is not taken?

I get the following error in idea.log:

ERROR - penapi.actionSystem.impl.Utils - PhpStorm 10.0.3 Build #PS-143.1770
2016-03-02 11:06:21,950 [ 83848] ERROR - penapi.actionSystem.impl.Utils - JDK: 1.8.0_51
2016-03-02 11:06:21,950 [ 83848] ERROR - penapi.actionSystem.impl.Utils - VM: Java HotSpot(TM) Server VM
2016-03-02 11:06:21,950 [ 83848] ERROR - penapi.actionSystem.impl.Utils - Vendor: Oracle Corporation
2016-03-02 11:06:21,950 [ 83848] ERROR - penapi.actionSystem.impl.Utils - OS: Windows 7
2016-03-02 11:06:21,950 [ 83848] ERROR - penapi.actionSystem.impl.Utils - Last Action:
2016-03-02 11:06:32,942 [ 94840] DEBUG - t.connections.RemoteConnection - Opening connection to sftp://my-anonymous.host:22/
2016-03-02 11:06:32,957 [ 94855] DEBUG - ins.plugins.webDeployment.sftp - Connecting to my-anonymous.host port 22
2016-03-02 11:06:54,001 [ 115899] WARN - t.connections.RemoteConnection - Retrying connecting to sftp://my-anonymous.host:22/: 1 iterations
org.apache.commons.vfs2.FileSystemException: Could not connect to SFTP server at "sftp://my-anonymous.host/".
at org.apache.commons.vfs2.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:108)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.getFileSystem(AbstractOriginatingFileProvider.java:102)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:80)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:64)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:790)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:712)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool.createConnection(RemoteConnectionPool.java:160)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionManager.openConnection(RemoteConnectionManager.java:103)
at com.jetbrains.plugins.webDeployment.PublishUtils$1$1.run(PublishUtils.java:104)
at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:366)
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)
at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:55)
Caused by: org.apache.commons.vfs2.FileSystemException: Could not connect to SFTP server at "my-anonymous.host".
at org.apache.commons.vfs2.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:173)
at org.apache.commons.vfs2.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:97)
... 15 more
Caused by: com.jcraft.jsch.JSchException: Session.connect: java.net.ConnectException: Connection timed out: connect
at com.jcraft.jsch.Session.connect(Session.java:558)
at com.jcraft.jsch.Session.connect(Session.java:183)
at org.apache.commons.vfs2.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:169)
... 16 more

Thx,

Alex

3 comments
Comment actions Permalink

We disabled proxy temporarily for my client and now it's working as expecting.

So 2 questions:

  • Why does connecting to remote host does not respect proxy settings?
  • How can I configure proxy for connecting to remote host?

Thx,
Alex

0
Comment actions Permalink

Unfortunately FTP/SFTP deployment via proxy isn't supported yet, we have this feature request submitted. Feel free to vote for it in order to move it up in the queue and receive notifications regarding the progress of the feature (more info at https://intellij-support.jetbrains.com/entries/23368682).

You can try a workaround mentioned by xfra35:

FTP host: PROXY-host

Port: PROXY-port

Username: TARGET-user@TARGET-host:TARGET-port

Password: TARGET-password

0
Comment actions Permalink

Thanks for the information. Unfortunately the workaround does not work for me. Still connecting endlessly.

Will try if I can get it working with a SSH tunnel.

0

Please sign in to leave a comment.