You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Github Actions密码被哈希导致SSH认证失败求助

GitHub Actions SSH部署时密码认证失败,含"password"的内容被自动替换为***

我的工作流文件如下:

name: Joint Fairy Deploy
on:
  push:
    branches:
      - main
jobs:
  build:
    name: Deploy...
    runs-on: ubuntu-latest
    steps:
      - name: executing remote ssh commands using password
        uses: appleboy/ssh-action@master
        with:
          host: ${{ secrets.SERVER_HOST }}
          password: ${{ secrets.SERVER_PASSWORD }}
          username: ${{ secrets.SERVER_USERNAME }}
          port: 22
          script_stop: true
          script: |
            cd /var/www/app/joint-fairy && ./deploy.sh

现在遇到一个问题:所有包含"password"的内容都被自动替换为***。比如步骤名称里的"executing remote ssh commands using password"被转换成"executing remote ssh commands using ***",配置项里的password: ***直接变成了***:***。

这直接导致SSH认证失败,错误信息如下:

2023/05/24 11:05:51 ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain

内容的提问来源于stack exchange,提问作者sylvesterasa

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.20 18:40:09