SFTP Siteground 停止工作(org.apache.commons.vfs2.FileSystemException:无法确定文件类型)
SFTP Siteground stopped working (org.apache.commons.vfs2.FileSystemException: Could not determine the type of file)
PhpStorm 突然停止工作,我在外地时它工作得很好,但现在它不让我连接到 SFTP。我仔细检查了一切是否正确:服务器、密码、SSH 密钥文件、用户名等。
当我回来时它就停止工作了。我得到了这些日志,但他们仍然不告诉我哪里出了问题。为什么我不能登录?我正在使用 Siteground。
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.run(ProgressManagerImpl.java:165)
at com.intellij.openapi.application.impl.ApplicationImpl.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
我忘记将我的 IP 地址添加到 Allowed IPs
,因为我在外地时设置了我的密钥。
我去了 Cpanel
-> Advanced
-> SSH/Shell Access
-> Manage Current Keys
-> Allowed IPs
并意识到我忘记添加我的 IP 地址.我在设置 SFTP 密钥时并不知道。
无法在 SiteGround 教程、google 搜索或日志中的任何地方找到检查允许的 IP 的简单提示,所以我想我会添加此问答以供其他拥有此功能的人使用问题。
PhpStorm 突然停止工作,我在外地时它工作得很好,但现在它不让我连接到 SFTP。我仔细检查了一切是否正确:服务器、密码、SSH 密钥文件、用户名等。 当我回来时它就停止工作了。我得到了这些日志,但他们仍然不告诉我哪里出了问题。为什么我不能登录?我正在使用 Siteground。
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.run(ProgressManagerImpl.java:165)
at com.intellij.openapi.application.impl.ApplicationImpl.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
我忘记将我的 IP 地址添加到 Allowed IPs
,因为我在外地时设置了我的密钥。
我去了 Cpanel
-> Advanced
-> SSH/Shell Access
-> Manage Current Keys
-> Allowed IPs
并意识到我忘记添加我的 IP 地址.我在设置 SFTP 密钥时并不知道。
无法在 SiteGround 教程、google 搜索或日志中的任何地方找到检查允许的 IP 的简单提示,所以我想我会添加此问答以供其他拥有此功能的人使用问题。