SFTP not working from PhpStorm on a Mac
My server uses SFTP with key pair authentication. I am able to connect to it from Dreamweaver or CyberDuck. PhpStorm won't connect with the same configuration. I am getting "Connection to <servername> failed. Auth fail" message. I have seen several threads on this topic but never seen a resolution. Is this functionality actually working on a Mac? I am a happy user of several JetBrains products, but waiting with purchase of PhpStorm until this SFTP is fully functional and reliable.
I am on the latest version of OS-X and PhpStorm 4.0.1
请先登录再写评论。
Some debug info:
2012-06-02 22:44:10,670 [ 24990] DEBUG - t.connections.RemoteConnection - Opening connection to sftp://server.org:22/
2012-06-02 22:44:10,684 [ 25004] INFO - s.webDeployment.PublishUtils$5 - Using "/var/folders/k7/50tf607d53x5tnx7cs2xy7fr0000gn/T/vfs_cache" as temporary files store.
2012-06-02 22:44:10,747 [ 25067] INFO - ins.plugins.webDeployment.sftp - Connecting to server.org port 22
2012-06-02 22:44:11,809 [ 26129] INFO - ins.plugins.webDeployment.sftp - Connection established
2012-06-02 22:44:11,822 [ 26142] INFO - ins.plugins.webDeployment.sftp - Remote version string: SSH-2.0-OpenSSH_5.3p1 Debian-3ubuntu7
2012-06-02 22:44:11,823 [ 26143] INFO - ins.plugins.webDeployment.sftp - Local version string: SSH-2.0-JSCH-0.1.44
2012-06-02 22:44:11,823 [ 26143] INFO - ins.plugins.webDeployment.sftp - CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
2012-06-02 22:44:12,520 [ 26840] INFO - ins.plugins.webDeployment.sftp - SSH_MSG_KEXINIT sent
2012-06-02 22:44:12,521 [ 26841] INFO - ins.plugins.webDeployment.sftp - SSH_MSG_KEXINIT received
2012-06-02 22:44:12,522 [ 26842] INFO - ins.plugins.webDeployment.sftp - kex: server->client aes128-ctr hmac-md5 none
2012-06-02 22:44:12,534 [ 26854] INFO - ins.plugins.webDeployment.sftp - kex: client->server aes128-ctr hmac-md5 none
2012-06-02 22:44:12,600 [ 26920] INFO - ins.plugins.webDeployment.sftp - SSH_MSG_KEXDH_INIT sent
2012-06-02 22:44:12,601 [ 26921] INFO - ins.plugins.webDeployment.sftp - expecting SSH_MSG_KEXDH_REPLY
2012-06-02 22:44:12,721 [ 27041] INFO - ins.plugins.webDeployment.sftp - ssh_rsa_verify: signature true
2012-06-02 22:44:12,721 [ 27041] INFO - ins.plugins.webDeployment.sftp - Host 'server.org' is known and mathces the RSA host key
2012-06-02 22:44:12,723 [ 27043] INFO - ins.plugins.webDeployment.sftp - SSH_MSG_NEWKEYS sent
2012-06-02 22:44:12,723 [ 27043] INFO - ins.plugins.webDeployment.sftp - SSH_MSG_NEWKEYS received
2012-06-02 22:44:12,746 [ 27066] INFO - ins.plugins.webDeployment.sftp - SSH_MSG_SERVICE_REQUEST sent
2012-06-02 22:44:12,764 [ 27084] INFO - ins.plugins.webDeployment.sftp - SSH_MSG_SERVICE_ACCEPT received
2012-06-02 22:44:12,807 [ 27127] INFO - ins.plugins.webDeployment.sftp - Authentications that can continue: publickey,keyboard-interactive,password
2012-06-02 22:44:12,807 [ 27127] INFO - ins.plugins.webDeployment.sftp - Next authentication method: publickey
2012-06-02 22:44:12,844 [ 27164] INFO - ins.plugins.webDeployment.sftp - Authentications that can continue: password
2012-06-02 22:44:12,844 [ 27164] INFO - ins.plugins.webDeployment.sftp - Next authentication method: password
2012-06-02 22:44:15,076 [ 29396] WARN - i.remotebrowser.ServerTreeNode - Could not connect to SFTP server at "sftp://server.org/".
org.apache.commons.vfs.FileSystemException: Could not connect to SFTP server at "sftp://server.org/".
at org.apache.commons.vfs.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:106)
at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.getFileSystem(AbstractOriginatingFileProvider.java:103)
at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:82)
at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:66)
at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:692)
at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:620)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool.createConnection(RemoteConnectionPool.java:120)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionManager.openConnection(RemoteConnectionManager.java:111)
at com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerTreeContext.getConnection(ServerTreeContext.java:83)
at com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerTreeNode.computeFile(ServerTreeNode.java:237)
at com.jetbrains.plugins.webDeployment.ui.remotebrowser.ServerTreeNode.getChildren(ServerTreeNode.java:129)
at com.intellij.ui.treeStructure.SimpleTreeStructure.getChildElements(SimpleTreeStructure.java:25)
at com.intellij.ide.util.treeView.AbstractTreeUi$31.run(AbstractTreeUi.java:1552)
at com.intellij.ide.util.treeView.AbstractTreeUi.execute(AbstractTreeUi.java:1747)
at com.intellij.ide.util.treeView.AbstractTreeUi.execute(AbstractTreeUi.java:1738)
at com.intellij.ide.util.treeView.AbstractTreeUi.getChildrenFor(AbstractTreeUi.java:1550)
at com.intellij.ide.util.treeView.AbstractTreeUi.access$5200(AbstractTreeUi.java:58)
at com.intellij.ide.util.treeView.AbstractTreeUi$49.run(AbstractTreeUi.java:2652)
at com.intellij.ide.util.treeView.AbstractTreeUi.execute(AbstractTreeUi.java:1747)
at com.intellij.ide.util.treeView.AbstractTreeUi.execute(AbstractTreeUi.java:1738)
at com.intellij.ide.util.treeView.AbstractTreeUi.access$2400(AbstractTreeUi.java:58)
at com.intellij.ide.util.treeView.AbstractTreeUi$60$1.run(AbstractTreeUi.java:3320)
at com.jetbrains.plugins.webDeployment.ui.remotebrowser.WebServerTreeBuilder.runBackgroundLoading(WebServerTreeBuilder.java:90)
at com.intellij.ide.util.treeView.AbstractTreeUi$60.run(AbstractTreeUi.java:3311)
at com.intellij.ide.util.treeView.AbstractTreeUi.execute(AbstractTreeUi.java:1747)
at com.intellij.ide.util.treeView.AbstractTreeUi.execute(AbstractTreeUi.java:1738)
at com.intellij.ide.util.treeView.AbstractTreeUi.access$2400(AbstractTreeUi.java:58)
at com.intellij.ide.util.treeView.AbstractTreeUi$61.run(AbstractTreeUi.java:3375)
at com.intellij.util.concurrency.WorkerThread.run(WorkerThread.java:105)
at com.intellij.openapi.application.impl.ApplicationImpl$6.run(ApplicationImpl.java:434)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:145)
Caused by: org.apache.commons.vfs.FileSystemException: Could not connect to SFTP server at "server.org".
at org.apache.commons.vfs.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:268)
at org.apache.commons.vfs.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:95)
... 36 more
Caused by: com.jcraft.jsch.JSchException: Auth fail
at com.jcraft.jsch.Session.connect(Session.java:461)
at com.jcraft.jsch.Session.connect(Session.java:154)
at org.apache.commons.vfs.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:264)
Please use bugtracker for issues. It might be issue of the library, please try newer jsh jsch-0.1.46.jar or even jsch-0.1.48.jar. Put library jar instead of {application}/plugins/webDeployment/lib/jsch-0.1.44.jar. Also please check server side logs.
Thanks Elena, I created OC-4123, but can you confirm that this functionality actually works on Macs? Like I said, I have three other SFTP clients on my computer that work flawlessly. PhPStorm does not and I have seen several
threads on similar topic with no resolution.
BTW just installed jsch 0.1.48 per your suggestion. It did not resolve the problem. I don't have access to server side logs. Please note that i have three other SFTP clients that work flawlessly with the same server.
Thanks. I've got that issue. That functionality definitely works on Macs. Although it has some bugs hard to reproduce and fix.