Sign inSign up

droneplugin/ssh

By droneplugin

•Updated over 7 years ago

drone ci ssh plugin

Image
0

1.4K

droneplugin/ssh repository overview

⁠DRONE-CI SSH 插件

  • 使用

使用私钥登录

kind: pipeline
name: default
steps:
  - name: publish
    image: droneplugin/ssh
    privileged: true
    settings:
      host: {Your-Remote-Host}
      user: {Your-Remote-User}
      pem: {Your-Private-Key}
      command:
        - ls
        - echo hello

使用私钥文件登录

kind: pipeline
name: default
steps:
  - name: publish
    image: droneplugin/ssh
    privileged: true
    settings:
      host: {Your-Remote-Host}
      user: {Your-Remote-User}
      pem_file: {Your-Private-Key-Path}
      command:
        - ls
        - echo hello

带密码的私钥登录

kind: pipeline
name: default
steps:
  - name: publish
    image: droneplugin/ssh
    privileged: true
    settings:
      host: {Your-Remote-Host}
      user: {Your-Remote-User}
      pem: {Your-Private-Key}
      passphrase: {Your-Private-Passphrase}
      command:
        - ls
        - echo hello

使用密码登录

kind: pipeline
name: default
steps:
  - name: publish
    image: droneplugin/ssh
    privileged: true
    settings:
      host: {Your-Remote-Host}
      user: {Your-Remote-User}
      password: {Your-Remote-Password}
      command:
        - ls
        - echo hello

Tag summary

Content type

Image

Digest

Size

6.5 MB

Last updated

over 7 years ago

docker pull droneplugin/ssh