appleboy / drone-ssh

Drone plugin for executing remote ssh commands
MIT License
251 stars 74 forks source link

Does it support ed25519 ? #170

Closed Asing1001 closed 1 year ago

Asing1001 commented 3 years ago

Given a file as following, it works with a ssh_key generate with rsa but ed25519 Where ed25519 is a recommended algorithm by github here

If it does support, what should I change to make it work? Thank you

local deploy(host) = {
  name: host,
  image: 'appleboy/drone-ssh',
  settings: {
    host: host,
    username: 'user',
    port: 22,
    key: {
      from_secret: 'ssh_key',
    },
    script: [
      'echo 123'
    ],
  }
};

[{
  kind: 'pipeline',
  name: 'default',
  clone: {
    disable: true,
  },
  steps: [
    deploy('example.com'),
  ],
  trigger: {    
    event: ['push'],
    branch: 'test-ssh'
  },
}]
appleboy commented 2 years ago

See the documentation: https://github.com/appleboy/ssh-action#setting-up-a-ssh-key