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

error message: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain #142

Open
roimdev opened this issue Nov 30, 2022 · 3 comments

Comments

@roimdev
Copy link

roimdev commented Nov 30, 2022

settting

steps:
  - name: scp files
    image: appleboy/drone-scp
    pull: if-not-exists
    volumes: # 
      - name: file-scp
        path: /app/build
    settings:
      host:
        from_secret: host
      username:
        from_secret: username
      key:
        from_secret: key
      port:
        from_secret: port
      target: /app/shell/share-web
      source: build.sh
      command_timeout: 2m
      script:
        - cd /app/shell
        - chmod +x build.sh
        - sh build.sh
volumes: 
  - name: file-scp
    host:
      path: /home/centos/app/build

console log

tar all files into /tmp/872159610/tJAPMyIfHx.tar
scp file to server.
drone-scp error:  error copy file to dest: ******, error message: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

2022/11/30 07:25:19 error copy file to dest: ******, error message: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
@OrangGeeGee
Copy link

I'm bumping against the same thing, post back if you've figured it out please.

@cyberb
Copy link

cyberb commented Dec 12, 2022

interesting, I had the same issue and changing this:

image: "appleboy/drone-scp:1.6.2",

to

image: "appleboy/drone-scp",

helped

@waflessnet
Copy link

@cyberb i changed
from

image: "appleboy/drone-scp"

to

image: "appleboy/drone-scp:1.6.2",

thanks, work.

then last not work

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

4 participants