SFTP Siteground停止工作(org.apache.commons.vfs2.FileSystemException:无法确定文件类型)

时间:2018-01-03 18:49:13

标签: phpstorm sftp

PhpStorm突然停止工作,当我出城时它工作得很好,但现在它不能让我连接到SFTP。我仔细检查了一切是否正确:服务器,密码,SSH密钥文件,用户名等。 我刚回来时就停止了工作。我得到了这些日志,他们仍然不会告诉我什么是错的。为什么我无法登录?我使用Siteground。

ID    Test
----------
1      Y
2      Y
3      Y

1 个答案:

答案 0 :(得分:0)

我忘了将我的IP地址添加到org.apache.commons.vfs2.FileSystemException: Could not determine the type of file "sftp://us###.siteground.us:18765/". 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.RemoteHostTask.doRun(RemoteHostTask.java:156) at com.jetbrains.plugins.webDeployment.RemoteHostTask.run(RemoteHostTask.java:104) at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:713) at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:157) at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:543) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:488) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144) at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:165) 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://us###.siteground.us:18765/". 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) ... 22 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) ... 25 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) ... 28 more ,因为我在外出时设置了我的密钥。

我去了Allowed IPs - > Cpanel - > Advanced - > SSH/Shell Access - > Manage Current Keys并意识到我忘了添加我的IP地址。在我设置SFTP密钥时,我还不知道。

无法找到这个简单的提示,以便在SiteGround教程,谷歌搜索或日志中的任何位置检查允许的IP,因此我认为我将此Q& A添加到堆栈溢出给其他有此问题的人。