mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-05-09 18:23:21 +08:00
19 lines
508 B
Markdown
19 lines
508 B
Markdown
Use the SSH plugin to execute commands on a remote server. The following parameters are used to configure this plugin:
|
|
|
|
* `host` - address or IP of the remote machine
|
|
* `port` - port to connect to on the remote machine
|
|
* `user` - user to log in as on the remote machine
|
|
* `commands` - list of commands to execute
|
|
|
|
The following is a sample SSH configuration in your .drone.yml file:
|
|
|
|
```yaml
|
|
deploy:
|
|
ssh:
|
|
host: foo.com
|
|
user: root
|
|
port: 22
|
|
commands:
|
|
- echo hello
|
|
- echo world
|
|
``` |