drone-ssh: ssh: handshake failed

I keep getting the following error… I have many repos already setup and the drone-ssh plugin work fine with them. this only happens on some of them.

ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
0s
exit code 1

my drone.yml:

pipeline:
  build:
    image: node:8.1
    commands:
      - npm install -q
      - npm run lint
      - npm run babel
      - npm run webpack
  ssh:
    pull: true
    image: appleboy/drone-ssh
    host: myserver.com
    username: myuser
    secrets: [ ssh_key ]
    port: 22
    script:
      - cd /path/to/app && git pull && npm install && npm run webpack && pm2 reload process.json -s
    when:
      status: success
      event: [push]
      branch: master

I’m using drone 0.8 drone-cli 0.8 my project settings: (from drone repo info org/repo)

Owner: org
Repo: repo
Type: git
Config: .drone.yml
Visibility: private
Private: true
Trusted: true
Gated: false
Remote: https://git.company.com/org/repo.git

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 23 (5 by maintainers)

Most upvoted comments

image

======CMD======
ls
pwd
cd /home/ubuntu && touch
======END======
ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain