-
-
Notifications
You must be signed in to change notification settings - Fork 577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Host fingerprint verification fails #275
Comments
same problem |
Also encountering this issue. Remote server for me is Debian 12, so probably similar configuration to Ubuntu. I tried just about every permutation I could think of, and both RSA and ed25519 keys. |
I have the same problem - but it only occurrs when I add an SCP command... With SCP command... Here's my workflow source.. `# Step 1 V5 on: jobs: |
I met the same issue, and thanks, @thinkovation, for the inspiration! I fixed it by removing the The thing is that my scripts contain So, I logged into the server and fixed that. No need to add the fingerprint to the GitHub Actions secret. |
I would appreciate knowing why this isn't working for me. I get the same issue in both appleboy/scp-action and appleboy/ssh-action. I've tried following the docs with the ssh-keygen commands to print out the SHA256. I've tried a combination of the below, no luck. Tried with the SHA256 prefix
And tried without the SHA256 prefix
It'd be great to have some examples here for this extra security measure! |
The same problem.
According to #81 (comment) |
I tried all mentioned suggestions but same for me, it doesn't work... |
I had the same issue and was fixed when I SSH to the server and either git clone or git pull first so that I can save the fingerprint on the server, then I run my workflow. Try that and let me know how it goes. |
I'm unable to get host fingerprint verification to succeed. The following works (i.e., my SSH settings are proven to be correct since the workflow completes):
But when I add my remote server's public fingerprint...
jobs: build: name: Build runs-on: ubuntu-latest steps: - name: executing remote ssh commands using ssh key uses: appleboy/ssh-action@v1.0.0 with: host: ${{ secrets.SSH_HOST }} + fingerprint: ${{ secrets.SSH_HOST_FINGERPRINT }} username: ${{ secrets.SSH_USER }} key: ${{ secrets.SSH_KEY }} passphrase: ${{ secrets.SSH_PASSPHRASE }} script_stop: true script: # ...
...the workflow fails with the following message:
I've triple-checked that I'm adding/saving the correct repo action secret, the output from the following command while logged into my remote server:
I've also checked against the following command:
The fingerprints are consistent with each other, so I'm not sure what's causing the mismatch. Any additional debugging steps I should try? My remote server is running Ubuntu 22.04.3 LTS.
The text was updated successfully, but these errors were encountered: