appleboy / scp-action

GitHub Action that copy files and artifacts via SSH.
https://github.com/marketplace/actions/scp-command-to-transfer-files
MIT License
1.14k stars 134 forks source link

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

Open PsclDev opened 1 year ago

PsclDev commented 1 year ago

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 }}
EntreNousCorporation commented 1 year ago

Hello, i had a similar error : error message: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain. Any ideas ? BR

yonghenghuanmie commented 1 year ago

Any ideas ? BR

Using another tool. I got same problem on ssh-action which create by the same author of this tool. Then I follow the recommend posted in that issue used another tool and then it worked just so well. https://github.com/appleboy/ssh-action/issues/80

IvesCostaBr commented 1 year ago

what another tool?

noaman16 commented 11 months ago

I had a error : ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain

joebnb commented 9 months ago

same error and no solution works

VishwasShashidhar commented 8 months ago

If you are using Ubuntu 20.04 & later, you need to make some configuration changes.

See https://github.com/appleboy/scp-action#if-you-are-using-openssh for details.

prkagrawal commented 6 months ago

using this https://github.com/marketplace/actions/remote-ssh-commands instead worked for me