appleboy / appleboy/scp-action

ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey]

Open
#88 9 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
1.6k
Forks
178
PR merge metrics
No merged PRs in 30d

Description

My pipeline fails and it throws the message of the title.

I checked the readme and also read about the supported algorithms.
My key is using ed25519 algorithm.
If I am trying to run the scp command locally on my machine it is working:
scp -r -i file srcDir user@host:rootDir

Dont know why it throws me that issue when everything seems to me right at the moment.

My yml is quite simple and all secrets are set:

name: publish

on: push

jobs:
  update:
   runs-on: ubuntu-latest
   name: Update

   steps:
    - name: Checkout
      uses: actions/checkout@v2

    - name: Publish
      uses: appleboy/scp-action@master
      with:
        host: ${{ secrets.WWW_HOST }}
        username: ${{ secrets.WWW_HOST_USER }}
        key: ${{ secrets.WWW_HOST_KEY }}
        port: ${{ secrets.WWW_HOST_PORT }}
        source: "./www/*"
        target: ${{ secrets.WWW_HOST_DIR }}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the workflow YAML's Publish step and the scp-action inputs for host, username, key, port, source, and target. Compare the failing action run with the working local scp command and use the authentication error in the workflow logs; done means the pipeline authenticates and copies the selected files to the target.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, shell
Domain
ci-cd, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.