[Solved] Problem configuring remote PHP interpreter - failed to send channel request

Hello,

I'm stuck with setting up a remote PHP interpreter inside PHP Storm 2016.1.
My webserver is a Synology NAS on the local network with PHP 5.6 and enabled xdebug extension.
Access is through ssh using a password.

When I click on "OK" I get an error message: failed so send channel request


My next step was to verify if I can login using Putty: success


After clicking on "OK" in the window /var/log/auth.log results in two new lines:
Mar 28 13:23:43 nas sshd[23131]: pam_unix(sshd:session): session opened for user phpstorm by (uid=0)
Mar 28 13:23:43 nas sshd[23131]: pam_unix(sshd:session): session closed for user phpstorm

 

Is there something I'm missing?

Thanks in advance and best regards.

 

9 comments

Please follow https://intellij-support.jetbrains.com/hc/en-us/articles/206475068-How-to-Collecting-PhpStorm-WebStorm-debug-Logs and enable additional logging for Deployment.
Reproduce the issue and attach idea.log (Help->Show Log in...).

0

Thanks for your fast reply.

Here we go (by the way - I didn't found a way to upload a file or embed the log)

2016-03-28 14:19:02,374 [12938160]   INFO - lij.diagnostic.DebugLogManager - Set DEBUG for the following categories: com.jetbrains.php.debug, com.jetbrains.plugins.webDeployment
2016-03-28 14:19:06,336 [12942122]   WARN - ConfigurableExtensionPointUtil - ignore deprecated groupId: editor for id: editor.preferences.import
2016-03-28 14:19:23,594 [12959380]  DEBUG - t.connections.RemoteConnection - Opening connection to sftp://192.168.0.40:2886/ in @4bc151
2016-03-28 14:19:23,598 [12959384]  DEBUG - ins.plugins.webDeployment.sftp - Connecting to 192.168.0.40 port 2886
2016-03-28 14:19:23,600 [12959386]  DEBUG - ins.plugins.webDeployment.sftp - Connection established
2016-03-28 14:19:23,706 [12959492]  DEBUG - ins.plugins.webDeployment.sftp - Remote version string: SSH-2.0-OpenSSH_6.8p1-hpn14v6
2016-03-28 14:19:23,706 [12959492]  DEBUG - ins.plugins.webDeployment.sftp - Local version string: SSH-2.0-JSCH-0.1.52
2016-03-28 14:19:23,706 [12959492]  DEBUG - ins.plugins.webDeployment.sftp - CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
2016-03-28 14:19:23,706 [12959492]  DEBUG - ins.plugins.webDeployment.sftp - aes256-ctr is not available.
2016-03-28 14:19:23,706 [12959492]  DEBUG - ins.plugins.webDeployment.sftp - aes192-ctr is not available.
2016-03-28 14:19:23,706 [12959492]  DEBUG - ins.plugins.webDeployment.sftp - aes256-cbc is not available.
2016-03-28 14:19:23,706 [12959492]  DEBUG - ins.plugins.webDeployment.sftp - aes192-cbc is not available.
2016-03-28 14:19:23,706 [12959492]  DEBUG - ins.plugins.webDeployment.sftp - CheckKexes: diffie-hellman-group14-sha1,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
2016-03-28 14:19:23,810 [12959596]  DEBUG - ins.plugins.webDeployment.sftp - CheckSignatures: ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
2016-03-28 14:19:23,810 [12959596]  DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_KEXINIT sent
2016-03-28 14:19:23,811 [12959597]  DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_KEXINIT received
2016-03-28 14:19:23,811 [12959597]  DEBUG - ins.plugins.webDeployment.sftp - kex: server: curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256
2016-03-28 14:19:23,811 [12959597]  DEBUG - ins.plugins.webDeployment.sftp - kex: server: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ssh-ed25519
2016-03-28 14:19:23,811 [12959597]  DEBUG - ins.plugins.webDeployment.sftp - kex: server: aes128-ctr,aes128-gcm@openssh.com,aes192-ctr,aes256-ctr,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com
2016-03-28 14:19:23,811 [12959597]  DEBUG - ins.plugins.webDeployment.sftp - kex: server: aes128-ctr,aes128-gcm@openssh.com,aes192-ctr,aes256-ctr,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com
2016-03-28 14:19:23,811 [12959597]  DEBUG - ins.plugins.webDeployment.sftp - kex: server: hmac-sha2-256,hmac-sha2-256-etm@openssh.com,hmac-sha2-512,hmac-sha2-512-etm@openssh.com,umac-128-etm@openssh.com,umac-128@openssh.com
2016-03-28 14:19:23,811 [12959597]  DEBUG - ins.plugins.webDeployment.sftp - kex: server: hmac-sha2-256,hmac-sha2-256-etm@openssh.com,hmac-sha2-512,hmac-sha2-512-etm@openssh.com,umac-128-etm@openssh.com,umac-128@openssh.com
2016-03-28 14:19:23,811 [12959597]  DEBUG - ins.plugins.webDeployment.sftp - kex: server: none,zlib@openssh.com
2016-03-28 14:19:23,811 [12959597]  DEBUG - ins.plugins.webDeployment.sftp - kex: server: none,zlib@openssh.com
2016-03-28 14:19:23,811 [12959597]  DEBUG - ins.plugins.webDeployment.sftp - kex: server:  
2016-03-28 14:19:23,811 [12959597]  DEBUG - ins.plugins.webDeployment.sftp - kex: server:  
2016-03-28 14:19:23,811 [12959597]  DEBUG - ins.plugins.webDeployment.sftp - kex: client: diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
2016-03-28 14:19:23,811 [12959597]  DEBUG - ins.plugins.webDeployment.sftp - kex: client: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
2016-03-28 14:19:23,811 [12959597]  DEBUG - ins.plugins.webDeployment.sftp - kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
2016-03-28 14:19:23,811 [12959597]  DEBUG - ins.plugins.webDeployment.sftp - kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
2016-03-28 14:19:23,811 [12959597]  DEBUG - ins.plugins.webDeployment.sftp - kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
2016-03-28 14:19:23,811 [12959597]  DEBUG - ins.plugins.webDeployment.sftp - kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
2016-03-28 14:19:23,811 [12959597]  DEBUG - ins.plugins.webDeployment.sftp - kex: client: none
2016-03-28 14:19:23,811 [12959597]  DEBUG - ins.plugins.webDeployment.sftp - kex: client: none
2016-03-28 14:19:23,811 [12959597]  DEBUG - ins.plugins.webDeployment.sftp - kex: client:  
2016-03-28 14:19:23,811 [12959597]  DEBUG - ins.plugins.webDeployment.sftp - kex: client:  
2016-03-28 14:19:23,811 [12959597]  DEBUG - ins.plugins.webDeployment.sftp - kex: server->client aes128-ctr hmac-sha2-256 none
2016-03-28 14:19:23,811 [12959597]  DEBUG - ins.plugins.webDeployment.sftp - kex: client->server aes128-ctr hmac-sha2-256 none
2016-03-28 14:19:23,811 [12959597]  DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_KEX_DH_GEX_REQUEST(1024<1024<1024) sent
2016-03-28 14:19:23,811 [12959597]  DEBUG - ins.plugins.webDeployment.sftp - expecting SSH_MSG_KEX_DH_GEX_GROUP
2016-03-28 14:19:23,902 [12959688]  DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_KEX_DH_GEX_INIT sent
2016-03-28 14:19:23,902 [12959688]  DEBUG - ins.plugins.webDeployment.sftp - expecting SSH_MSG_KEX_DH_GEX_REPLY
2016-03-28 14:19:24,024 [12959810]  DEBUG - ins.plugins.webDeployment.sftp - ssh_rsa_verify: signature true
2016-03-28 14:19:24,026 [12959812]  DEBUG - ins.plugins.webDeployment.sftp - Host '192.168.0.40' is known and matches the RSA host key
2016-03-28 14:19:24,026 [12959812]  DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_NEWKEYS sent
2016-03-28 14:19:24,026 [12959812]  DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_NEWKEYS received
2016-03-28 14:19:24,026 [12959812]  DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_SERVICE_REQUEST sent
2016-03-28 14:19:24,026 [12959812]  DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_SERVICE_ACCEPT received
2016-03-28 14:19:24,030 [12959816]  DEBUG - ins.plugins.webDeployment.sftp - Authentications that can continue: publickey,keyboard-interactive,password
2016-03-28 14:19:24,030 [12959816]  DEBUG - ins.plugins.webDeployment.sftp - Next authentication method: publickey
2016-03-28 14:19:24,030 [12959816]  DEBUG - ins.plugins.webDeployment.sftp - Authentications that can continue: password
2016-03-28 14:19:24,030 [12959816]  DEBUG - ins.plugins.webDeployment.sftp - Next authentication method: password
2016-03-28 14:19:24,223 [12960009]  DEBUG - ins.plugins.webDeployment.sftp - Authentication succeeded (password).
2016-03-28 14:19:24,224 [12960010]  DEBUG - ins.plugins.webDeployment.sftp - connect()
2016-03-28 14:19:24,228 [12960014]  DEBUG - ins.plugins.webDeployment.sftp - CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
2016-03-28 14:19:24,230 [12960016]  DEBUG - ins.plugins.webDeployment.sftp - aes256-ctr is not available.
2016-03-28 14:19:24,230 [12960016]  DEBUG - ins.plugins.webDeployment.sftp - aes192-ctr is not available.
2016-03-28 14:19:24,230 [12960016]  DEBUG - ins.plugins.webDeployment.sftp - aes256-cbc is not available.
2016-03-28 14:19:24,230 [12960016]  DEBUG - ins.plugins.webDeployment.sftp - aes192-cbc is not available.
2016-03-28 14:19:24,230 [12960016]  DEBUG - ins.plugins.webDeployment.sftp - CheckKexes: diffie-hellman-group14-sha1,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
2016-03-28 14:19:24,344 [12960130]  DEBUG - ins.plugins.webDeployment.sftp - CheckSignatures: ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
2016-03-28 14:19:24,344 [12960130]  DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_KEXINIT sent
2016-03-28 14:19:24,344 [12960130]  DEBUG - ins.plugins.webDeployment.sftp - kex: server: curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256
2016-03-28 14:19:24,344 [12960130]  DEBUG - ins.plugins.webDeployment.sftp - kex: server: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ssh-ed25519
2016-03-28 14:19:24,344 [12960130]  DEBUG - ins.plugins.webDeployment.sftp - kex: server: aes128-ctr,aes128-gcm@openssh.com,aes192-ctr,aes256-ctr,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com
2016-03-28 14:19:24,344 [12960130]  DEBUG - ins.plugins.webDeployment.sftp - kex: server: aes128-ctr,aes128-gcm@openssh.com,aes192-ctr,aes256-ctr,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com
2016-03-28 14:19:24,344 [12960130]  DEBUG - ins.plugins.webDeployment.sftp - kex: server: hmac-sha2-256,hmac-sha2-256-etm@openssh.com,hmac-sha2-512,hmac-sha2-512-etm@openssh.com,umac-128-etm@openssh.com,umac-128@openssh.com
2016-03-28 14:19:24,344 [12960130]  DEBUG - ins.plugins.webDeployment.sftp - kex: server: hmac-sha2-256,hmac-sha2-256-etm@openssh.com,hmac-sha2-512,hmac-sha2-512-etm@openssh.com,umac-128-etm@openssh.com,umac-128@openssh.com
2016-03-28 14:19:24,344 [12960130]  DEBUG - ins.plugins.webDeployment.sftp - kex: server: none,zlib@openssh.com
2016-03-28 14:19:24,344 [12960130]  DEBUG - ins.plugins.webDeployment.sftp - kex: server: none,zlib@openssh.com
2016-03-28 14:19:24,344 [12960130]  DEBUG - ins.plugins.webDeployment.sftp - kex: server:  
2016-03-28 14:19:24,344 [12960130]  DEBUG - ins.plugins.webDeployment.sftp - kex: server:  
2016-03-28 14:19:24,344 [12960130]  DEBUG - ins.plugins.webDeployment.sftp - kex: client: diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
2016-03-28 14:19:24,344 [12960130]  DEBUG - ins.plugins.webDeployment.sftp - kex: client: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
2016-03-28 14:19:24,344 [12960130]  DEBUG - ins.plugins.webDeployment.sftp - kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
2016-03-28 14:19:24,344 [12960130]  DEBUG - ins.plugins.webDeployment.sftp - kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
2016-03-28 14:19:24,344 [12960130]  DEBUG - ins.plugins.webDeployment.sftp - kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
2016-03-28 14:19:24,344 [12960130]  DEBUG - ins.plugins.webDeployment.sftp - kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
2016-03-28 14:19:24,344 [12960130]  DEBUG - ins.plugins.webDeployment.sftp - kex: client: none
2016-03-28 14:19:24,344 [12960130]  DEBUG - ins.plugins.webDeployment.sftp - kex: client: none
2016-03-28 14:19:24,344 [12960130]  DEBUG - ins.plugins.webDeployment.sftp - kex: client:  
2016-03-28 14:19:24,344 [12960130]  DEBUG - ins.plugins.webDeployment.sftp - kex: client:  
2016-03-28 14:19:24,344 [12960130]  DEBUG - ins.plugins.webDeployment.sftp - kex: server->client aes128-ctr hmac-sha2-256 none
2016-03-28 14:19:24,344 [12960130]  DEBUG - ins.plugins.webDeployment.sftp - kex: client->server aes128-ctr hmac-sha2-256 none
2016-03-28 14:19:24,344 [12960130]  DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_KEX_DH_GEX_REQUEST(1024<1024<1024) sent
2016-03-28 14:19:24,344 [12960130]  DEBUG - ins.plugins.webDeployment.sftp - expecting SSH_MSG_KEX_DH_GEX_GROUP
2016-03-28 14:19:24,438 [12960224]  DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_KEX_DH_GEX_INIT sent
2016-03-28 14:19:24,438 [12960224]  DEBUG - ins.plugins.webDeployment.sftp - expecting SSH_MSG_KEX_DH_GEX_REPLY
2016-03-28 14:19:24,565 [12960351]  DEBUG - ins.plugins.webDeployment.sftp - ssh_rsa_verify: signature true
2016-03-28 14:19:24,565 [12960351]  DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_NEWKEYS sent
2016-03-28 14:19:24,595 [12960381]   WARN - t.connections.RemoteConnection - Retrying connecting to sftp://192.168.0.40:2886/ in @4bc151: 1 iterations
org.apache.commons.vfs2.FileSystemException: Could not determine the type of file "sftp://192.168.0.40:2886/".
    at org.apache.commons.vfs2.provider.AbstractFileObject.getType(AbstractFileObject.java:1501)
    at org.apache.commons.vfs2.provider.AbstractFileObject.isFile(AbstractFileObject.java:1686)
    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:190)
    at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionManager.openConnection(RemoteConnectionManager.java:103)
    at com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerTreeContext.getConnection(ServerTreeContext.java:87)
    at com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerTreeNode.computeFile(ServerTreeNode.java:271)
    at com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerTreeNode.getChildren(ServerTreeNode.java:135)
    at com.intellij.ui.treeStructure.SimpleTreeStructure.getChildElements(SimpleTreeStructure.java:25)
    at com.intellij.ide.util.treeView.AbstractTreeUi$32.perform(AbstractTreeUi.java:1620)
    at com.intellij.ide.util.treeView.TreeRunnable.run(TreeRunnable.java:34)
    at com.intellij.ide.util.treeView.AbstractTreeUi.execute(AbstractTreeUi.java:1838)
    at com.intellij.ide.util.treeView.AbstractTreeUi.getChildrenFor(AbstractTreeUi.java:1617)
    at com.intellij.ide.util.treeView.AbstractTreeUi.access$4800(AbstractTreeUi.java:66)
    at com.intellij.ide.util.treeView.AbstractTreeUi$46.perform(AbstractTreeUi.java:2710)
    at com.intellij.ide.util.treeView.TreeRunnable.run(TreeRunnable.java:34)
    at com.intellij.ide.util.treeView.AbstractTreeUi.execute(AbstractTreeUi.java:1838)
    at com.intellij.ide.util.treeView.AbstractTreeUi.access$2500(AbstractTreeUi.java:66)
    at com.intellij.ide.util.treeView.AbstractTreeUi$57$1.perform(AbstractTreeUi.java:3403)
    at com.intellij.ide.util.treeView.TreeRunnable.run(TreeRunnable.java:34)
    at com.jetbrains.plugins.webDeployment.ui.remotebrowser.WebServerTreeBuilder.runBackgroundLoading(WebServerTreeBuilder.java:90)
    at com.intellij.ide.util.treeView.AbstractTreeUi$57.perform(AbstractTreeUi.java:3394)
    at com.intellij.ide.util.treeView.TreeRunnable.run(TreeRunnable.java:34)
    at com.intellij.ide.util.treeView.AbstractTreeUi.execute(AbstractTreeUi.java:1838)
    at com.intellij.ide.util.treeView.AbstractTreeUi.access$2500(AbstractTreeUi.java:66)
    at com.intellij.ide.util.treeView.AbstractTreeUi$58.perform(AbstractTreeUi.java:3459)
    at com.intellij.ide.util.treeView.TreeRunnable.run(TreeRunnable.java:34)
    at com.intellij.util.concurrency.WorkerThread.run(WorkerThread.java:109)
    at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:369)
    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://192.168.0.40:2886/".
    at org.apache.commons.vfs2.provider.sftp.SftpFileSystem.getChannel(SftpFileSystem.java:187)
    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:1492)
    ... 35 more
Caused by: com.jcraft.jsch.JSchException: failed to send channel request
    at com.jcraft.jsch.Request.write(Request.java:65)
    at com.jcraft.jsch.RequestSftp.request(RequestSftp.java:47)
    at com.jcraft.jsch.ChannelSftp.start(ChannelSftp.java:237)
    at com.jcraft.jsch.Channel.connect(Channel.java:152)
    at com.jcraft.jsch.Channel.connect(Channel.java:145)
    at com.jetbrains.plugins.webDeployment.config.LoggingSftpChannel.connect(LoggingSftpChannel.java:442)
    at org.apache.commons.vfs2.provider.sftp.SftpFileSystem.getChannel(SftpFileSystem.java:126)
    ... 38 more
2016-03-28 14:19:24,595 [12960381]  DEBUG - ins.plugins.webDeployment.sftp - Disconnecting from 192.168.0.40 port 2886
2016-03-28 14:19:24,595 [12960381]   WARN - i.remotebrowser.ServerTreeNode - Could not determine the type of file "sftp://192.168.0.40:2886/".
org.apache.commons.vfs2.FileSystemException: Could not determine the type of file "sftp://192.168.0.40:2886/".
    at org.apache.commons.vfs2.provider.AbstractFileObject.getType(AbstractFileObject.java:1501)
    at org.apache.commons.vfs2.provider.AbstractFileObject.isFile(AbstractFileObject.java:1686)
    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:190)
    at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionManager.openConnection(RemoteConnectionManager.java:103)
    at com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerTreeContext.getConnection(ServerTreeContext.java:87)
    at com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerTreeNode.computeFile(ServerTreeNode.java:271)
    at com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerTreeNode.getChildren(ServerTreeNode.java:135)
    at com.intellij.ui.treeStructure.SimpleTreeStructure.getChildElements(SimpleTreeStructure.java:25)
    at com.intellij.ide.util.treeView.AbstractTreeUi$32.perform(AbstractTreeUi.java:1620)
    at com.intellij.ide.util.treeView.TreeRunnable.run(TreeRunnable.java:34)
    at com.intellij.ide.util.treeView.AbstractTreeUi.execute(AbstractTreeUi.java:1838)
    at com.intellij.ide.util.treeView.AbstractTreeUi.getChildrenFor(AbstractTreeUi.java:1617)
    at com.intellij.ide.util.treeView.AbstractTreeUi.access$4800(AbstractTreeUi.java:66)
    at com.intellij.ide.util.treeView.AbstractTreeUi$46.perform(AbstractTreeUi.java:2710)
    at com.intellij.ide.util.treeView.TreeRunnable.run(TreeRunnable.java:34)
    at com.intellij.ide.util.treeView.AbstractTreeUi.execute(AbstractTreeUi.java:1838)
    at com.intellij.ide.util.treeView.AbstractTreeUi.access$2500(AbstractTreeUi.java:66)
    at com.intellij.ide.util.treeView.AbstractTreeUi$57$1.perform(AbstractTreeUi.java:3403)
    at com.intellij.ide.util.treeView.TreeRunnable.run(TreeRunnable.java:34)
    at com.jetbrains.plugins.webDeployment.ui.remotebrowser.WebServerTreeBuilder.runBackgroundLoading(WebServerTreeBuilder.java:90)
    at com.intellij.ide.util.treeView.AbstractTreeUi$57.perform(AbstractTreeUi.java:3394)
    at com.intellij.ide.util.treeView.TreeRunnable.run(TreeRunnable.java:34)
    at com.intellij.ide.util.treeView.AbstractTreeUi.execute(AbstractTreeUi.java:1838)
    at com.intellij.ide.util.treeView.AbstractTreeUi.access$2500(AbstractTreeUi.java:66)
    at com.intellij.ide.util.treeView.AbstractTreeUi$58.perform(AbstractTreeUi.java:3459)
    at com.intellij.ide.util.treeView.TreeRunnable.run(TreeRunnable.java:34)
    at com.intellij.util.concurrency.WorkerThread.run(WorkerThread.java:109)
    at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:369)
    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://192.168.0.40:2886/".
    at org.apache.commons.vfs2.provider.sftp.SftpFileSystem.getChannel(SftpFileSystem.java:187)
    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:1492)
    ... 35 more
Caused by: com.jcraft.jsch.JSchException: failed to send channel request
    at com.jcraft.jsch.Request.write(Request.java:65)
    at com.jcraft.jsch.RequestSftp.request(RequestSftp.java:47)
    at com.jcraft.jsch.ChannelSftp.start(ChannelSftp.java:237)
    at com.jcraft.jsch.Channel.connect(Channel.java:152)
    at com.jcraft.jsch.Channel.connect(Channel.java:145)
    at com.jetbrains.plugins.webDeployment.config.LoggingSftpChannel.connect(LoggingSftpChannel.java:442)
    at org.apache.commons.vfs2.provider.sftp.SftpFileSystem.getChannel(SftpFileSystem.java:126)
    ... 38 more
2016-03-28 14:19:24,595 [12960381]  DEBUG - ins.plugins.webDeployment.sftp - Caught an exception, leaving main loop due to Socket closed
2016-03-28 14:19:31,690 [12967476]   WARN - t.connections.RemoteConnection - Forced closing file system of sftp://192.168.0.40:2886/ in @4bc151
2016-03-28 14:19:31,690 [12967476]  DEBUG - t.connections.RemoteConnection - File system of sftp://192.168.0.40:2886/ in @4bc151 is closed.

0

Could you please test if you can connect to that server using FileZilla over SFTP protocol?

0

I tried it with FlashFXP, here is the output:

 

[15:12:28] [R] Connecting to 192.168.0.40 -> IP=192.168.0.40 PORT=2886
[15:12:28] [R] Connected to 192.168.0.40
[15:12:29] [R] Host key algorithm ecdsa-sha2-nistp256, size 192 bits.
[15:12:29] [R] Fingerprint (MD5): df:10:c8:e9:fb:73:fd:90:37:7b:58:75:60:c9:42:4f
[15:12:29] [R] Key exchange: curve25519-sha256@libssh.org. Session encryption: chacha20-poly1305@openssh.com, MAC: <implicit>, compression: none.
[15:12:29] [R] Auth Type: Password
[15:12:29] [R] Authentication succeeded
[15:12:29] [R] SSH Connection open
[15:12:29] [R] [info] subsystem request for sftp failed, subsystem not found.
[15:12:29] [R] [execute] /usr/lib/openssh/sftp-server
[15:12:29] [R] [execute] /usr/lib/sftp-server
[15:12:29] [R] [execute] /usr/local/lib/sftp-server
[15:12:29] [R] [execute] /usr/libexec/sftp-server
[15:12:29] [R] [execute] sftp-server
[15:12:29] [R] Connection failed (Unable to access SFTP sub-system, operation failed.)

0

Seems like SFTP is not running on your Synology NAS (192.168.0.40). We would need it in order to get it working.

0

SFTP is running on Port 86.
SSH on 2886. I choosed 2886 because the config window says "SSH Credentials".

So there isn't a possibility to connect through SSH but only through SFTP?

0

It should be still available.

Could you please check if Subsystem sftp /usr/lib/openssh/sftp-server is added to /etc/ssh/sshd_config on a remote server?

1

Here is the relevant part of sshd_config

# override default of no subsystems
Subsystem       sftp    internal-sftp -f DAEMON -u 000

But to be honest I've no problem using SFTP instead of SSH (at the moment).

Selecting port 86 seems to be working and I'm able to browse through the directories.
However after selecting the PHP binary PS shows me "PHP Version: not installed, debugger: not installed"

- Please tell me if it's ok to discuss this problem in this thread here or if I should create a new one.

 

Update

The logfile shows:

2016-03-28 17:44:51,724 [25287510]   INFO - esdk.transport.JschExecProcess - Executing ssh command: env "JETBRAINS_REMOTE_RUN"="1" /usr/bin/php /.phpstorm_helpers/phpinfo.php for phpstorm@192.168.0.40:86

When I login through ssh with this account and execute a ls -la inside the users home I see the new files behat.php, build.txt, phpinfo.php, phpunit.php

Executing through ssh (putty) php -f /.phpstorm_helpers/phpinfo.php results in an output without error.

The first lines are:

<?xml version="1.0" ?>
<php version="5.6.11" path_separator=":">
    <path_to_ini path="/etc/php/php.ini" />
    <additional_php_ini files="" />

0

Update: I've been able to partially solve this problem by installing a second ssh server instead of using the "first one" shipped with my NAS. However a new problem raised up - I'll make a new thread for this one.

1

Please sign in to leave a comment.