Skip to content
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

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 this issue Mar 30, 2021 · 2 comments

Comments

@zeronacer
Copy 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

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
Copy link
Author

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants