Skip to content

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

Description

@roimdev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions