【问题标题】:Github actions ci cd failedGithub 操作 ci cd 失败
【发布时间】:2021-11-13 09:58:06
【问题描述】:

您好,我在 github 操作上遇到了一些错误,以下是我的 testing.yml 文件

name: Test

on:
  workflow_dispatch:
#on:
#push:
#branches: [ master ]
jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Test
        uses: appleboy/ssh-action@master
        with:
          host: server_ip
          username: ubuntu,
          key: ${{ secrets.SSH_KEY }}
          script: |
            cd ~/test-cicd/ && touch help
        if: always()

测试失败并告诉我以下错误

2021/09/19 08:52:45 ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

谁能帮帮我?

【问题讨论】:

    标签: github-actions github-actions-runners


    【解决方案1】:

    解决了问题,问题是我在用户名上加了逗号。应该是这样 username: ubuntu 而不是 username: ubuntu,

    【讨论】:

      猜你喜欢
      • 2021-11-14
      • 2023-02-25
      • 2022-01-25
      • 2022-01-10
      • 2020-09-09
      • 1970-01-01
      • 2021-10-01
      • 2020-10-14
      • 2022-01-22
      相关资源
      最近更新 更多