mirror of
				https://github.com/appleboy/drone-ssh.git
				synced 2025-10-29 00:51:15 +08:00 
			
		
		
		
	docs: update docs
This commit is contained in:
		
							parent
							
								
									9ec4e989c8
								
							
						
					
					
						commit
						1adb039393
					
				
							
								
								
									
										10
									
								
								DOCS.md
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								DOCS.md
									
									
									
									
									
								
							| @ -15,7 +15,7 @@ pipeline: | |||||||
|   ssh: |   ssh: | ||||||
|     image: appleboy/drone-ssh |     image: appleboy/drone-ssh | ||||||
|     host: foo.com |     host: foo.com | ||||||
|     user: root |     username: root | ||||||
|     password: 1234 |     password: 1234 | ||||||
|     port: 22 |     port: 22 | ||||||
|     script: |     script: | ||||||
| @ -32,7 +32,7 @@ pipeline: | |||||||
|     host: |     host: | ||||||
| +    - foo.com | +    - foo.com | ||||||
| +    - bar.com | +    - bar.com | ||||||
|     user: root |     username: root | ||||||
|     port: 22 |     port: 22 | ||||||
|     script: |     script: | ||||||
|       - echo hello |       - echo hello | ||||||
| @ -46,7 +46,7 @@ pipeline: | |||||||
|   ssh: |   ssh: | ||||||
|     image: appleboy/drone-ssh |     image: appleboy/drone-ssh | ||||||
|     host: foo.com |     host: foo.com | ||||||
|     user: root |     username: root | ||||||
|     password: 1234 |     password: 1234 | ||||||
|     port: 22 |     port: 22 | ||||||
|     script: |     script: | ||||||
| @ -63,7 +63,7 @@ pipeline: | |||||||
|   ssh: |   ssh: | ||||||
|     image: appleboy/drone-ssh |     image: appleboy/drone-ssh | ||||||
|     host: foo.com |     host: foo.com | ||||||
|     user: root |     username: root | ||||||
|     password: 1234 |     password: 1234 | ||||||
|     port: 22 |     port: 22 | ||||||
|     script: |     script: | ||||||
| @ -82,7 +82,7 @@ host | |||||||
| port | port | ||||||
| : ssh port of target host | : ssh port of target host | ||||||
| 
 | 
 | ||||||
| user | username | ||||||
| : account for target host user | : account for target host user | ||||||
| 
 | 
 | ||||||
| password | password | ||||||
|  | |||||||
| @ -42,7 +42,7 @@ Execute from the working directory: | |||||||
| ```sh | ```sh | ||||||
| docker run --rm \ | docker run --rm \ | ||||||
|   -e PLUGIN_HOST=foo.com \ |   -e PLUGIN_HOST=foo.com \ | ||||||
|   -e PLUGIN_USER=root \ |   -e PLUGIN_USERNAME=root \ | ||||||
|   -e PLUGIN_KEY="$(cat ${HOME}/.ssh/id_rsa)" \ |   -e PLUGIN_KEY="$(cat ${HOME}/.ssh/id_rsa)" \ | ||||||
|   -e PLUGIN_SCRIPT=whoami \ |   -e PLUGIN_SCRIPT=whoami \ | ||||||
|   -v $(pwd):$(pwd) \ |   -v $(pwd):$(pwd) \ | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Bo-Yi Wu
						Bo-Yi Wu