• IntelliJ IDEA 使用 Cloud Toolkit 出现Failed to connect to server的报错


    异常问题描述:

    [ERROR] Failed to connect to server
    [ERROR] java.io.IOException
    [ERROR]       com.alibabacloud.commons.ssh.sshj.SshjConnectionManager.createAndConnectAndAuthClient(SshjConnectionManager.java:136)
    [ERROR]       com.alibabacloud.commons.ssh.sshj.SshjConnectionManager.makeConnection(SshjConnectionManager.java:60)
    [ERROR]       com.alibabacloud.commons.ssh.sshj.SshjConnectionManager.makeConnection(SshjConnectionManager.java:29)
    [ERROR]       com.alibabacloud.commons.task.SshUploadTask.run(SshUploadTask.java:75)
    [ERROR]       com.alibabacloud.intellij.runner.host.HostRunProfileState$2.run(HostRunProfileState.java:134)
    [ERROR]       com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:932)
    [ERROR]       com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsync$5(CoreProgressManager.java:434)
    [ERROR]       com.intellij.openapi.progress.impl.ProgressRunner.lambda$null$3(ProgressRunner.java:233)
    [ERROR]       com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:166)
    [ERROR]       com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:627)
    [ERROR]       com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:572)
    [ERROR]       com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61)
    [ERROR]       com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:153)
    [ERROR]       com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:233)
    [ERROR]       java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
    [ERROR]       java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    [ERROR]       java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    [ERROR]       java.lang.Thread.run(Thread.java:745)
    [ERROR] null

    解决方式:
    进入 File -> Settings -> Alibaba Cloud Toolkit -> Appearance & Behavior -> System Settings

    将 SSH Library 选择  JSch 即可

     保存配置即可

    进行测试:
    打包:

     包上传:

    最后,感谢 阿里  ,是他们帮我解决的。

  • 相关阅读:
    python基础 2
    python基础 1
    进程
    进程作业
    上海python14期第二次阶段性考试
    面向对向之元类
    面向对向
    笔试题
    模块(2)
    模块作业
  • 原文地址:https://www.cnblogs.com/zhangzhonghui/p/13606452.html
Copyright © 2020-2023  润新知