mirror of
				https://github.com/appleboy/ssh-action.git
				synced 2025-11-04 07:43:53 +00:00 
			
		
		
		
	docs: add Multiple Hosts with differebt port
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
		
							parent
							
								
									9fb11fb1f5
								
							
						
					
					
						commit
						80bd49ef51
					
				
							
								
								
									
										15
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								README.md
									
									
									
									
									
								
							@ -164,6 +164,21 @@ Multiple Hosts
 | 
			
		||||
        ls -al
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Multiple Hosts with differebt port
 | 
			
		||||
 | 
			
		||||
```diff
 | 
			
		||||
  - name: multiple host
 | 
			
		||||
    uses: appleboy/ssh-action@master
 | 
			
		||||
    with:
 | 
			
		||||
-     host: "foo.com"
 | 
			
		||||
+     host: "foo.com:1234,bar.com:5678"
 | 
			
		||||
      username: ${{ secrets.USERNAME }}
 | 
			
		||||
      key: ${{ secrets.KEY }}
 | 
			
		||||
      script: |
 | 
			
		||||
        whoami
 | 
			
		||||
        ls -al
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Synchronous execution on multiple hosts
 | 
			
		||||
 | 
			
		||||
```diff
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user