appleboy / drone-scp

Copy files and artifacts via SSH using a binary, docker or Drone CI.
MIT License
142 stars 29 forks source link

2021/03/30 10:23:07 error copy file to dest: xxxxxxxxxxxx, error message: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain #124

Open zeronacer opened 3 years ago

zeronacer commented 3 years ago
2021/03/30 10:23:07 error copy file to dest: xxxxxxxxxxxx, error message: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain

It seems like the plugin doesn't use my password? This is my deploy step:

image: appleboy/drone-scp
settings:
    host: xxxxxxxxx
    username: xxxxxxxxx
    password:
        from_secret: ssh_password
    port: 22
    target: xxxxxxx
    source:
        - xxxxxxx
        - xxxxxxx

Maybe someone can help me.

zeronacer commented 3 years ago

It seems that the plugin doesn't recognize that I want to authenticate via password because it's not shown in the list of attempted methods. Is this correct?

I tried ssh'ing through the console of the server on which my drone instance is running with the same credentials and it works fine. Thought that the fingerprinting might interfere, but after the manual connection I still get the error.

Wxh16144 commented 2 years ago

I had this problem at first, but I used ssh_password and it worked.

You can refer to my configuration

  1. add ssh_password to the runner ui . (must be this name, strictly case-sensitive)

  2. specify docker image version 1.6.3. (preferably)

  3. specify the password in the .drone.yml file.

image

Hope it can help you.