appleboy / drone-scp

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

attempted methods [none password], no supported methods remain #122

Open jlynet opened 3 years ago

jlynet commented 3 years ago

error copy file to dest: 192.168.0.2, error message: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain

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.