https://github.com/shrimpliu/drone-ssh
drone ci ssh plugin
https://github.com/shrimpliu/drone-ssh
drone drone-ci drone-plugin ssh
Last synced: over 1 year ago
JSON representation
drone ci ssh plugin
- Host: GitHub
- URL: https://github.com/shrimpliu/drone-ssh
- Owner: shrimpliu
- Created: 2019-06-14T07:20:25.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-14T07:21:11.000Z (about 7 years ago)
- Last Synced: 2025-01-28T16:41:23.772Z (over 1 year ago)
- Topics: drone, drone-ci, drone-plugin, ssh
- Language: Go
- Size: 1.95 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DRONE-CI SSH 插件
- 使用
使用私钥登录
```yaml
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
```
使用私钥文件登录
```yaml
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
```
带密码的私钥登录
```yaml
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
```
使用密码登录
```yaml
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
```