zoukankan      html  css  js  c++  java
  • 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 即可

     保存配置即可

    进行测试:
    打包:

     包上传:

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

  • 相关阅读:
    72. Edit Distance
    电脑常识
    java try·····catch·····异常处理学习
    java链接sqlserver数据库
    HTTP Status 500
    初识NDA
    Sublime Text_v2.02包含中文包以及使用方法
    ol 与ul 的区别
    word-break: break-all word-break:keep-all word-wrap: break-word三者的区别
    用deamon打开ISO文件,提示命令行错误!!
  • 原文地址:https://www.cnblogs.com/zhangzhonghui/p/13606452.html
Copyright © 2011-2022 走看看