mirror of
				https://github.com/appleboy/scp-action.git
				synced 2025-10-23 08:55:54 +08:00 
			
		
		
		
	chore: add proxy setting
This commit is contained in:
		
							
								
								
									
										11
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								README.md
									
									
									
									
									
								
							@@ -51,6 +51,17 @@ see the [action.yml](./action.yml) file for more detail imformation.
 | 
			
		||||
* overwrite - use `--overwrite` flag with tar
 | 
			
		||||
* tar_tmp_path - temporary path for tar file on the dest host
 | 
			
		||||
 | 
			
		||||
SSH Proxy Setting:
 | 
			
		||||
 | 
			
		||||
* proxy_host - proxy host
 | 
			
		||||
* proxy_port - proxy port, default is `22`
 | 
			
		||||
* proxy_username - proxy username
 | 
			
		||||
* proxy_password - proxy password
 | 
			
		||||
* proxy_passphrase - the passphrase is usually to encrypt the private key
 | 
			
		||||
* proxy_timeout - timeout for ssh to proxy host, default is `30s`
 | 
			
		||||
* proxy_key - content of ssh proxy private key.
 | 
			
		||||
* proxy_key_path - path of ssh proxy private key
 | 
			
		||||
 | 
			
		||||
### Example
 | 
			
		||||
 | 
			
		||||
Copy file via ssh password
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										18
									
								
								action.yml
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								action.yml
									
									
									
									
									
								
							@@ -37,6 +37,24 @@ inputs:
 | 
			
		||||
    default: false
 | 
			
		||||
  tar_tmp_path:
 | 
			
		||||
    description: 'temporary path for tar file on the dest host'
 | 
			
		||||
  proxy_host:
 | 
			
		||||
    description: 'ssh proxy remote host'
 | 
			
		||||
  proxy_port:
 | 
			
		||||
    description: 'ssh proxy remote port'
 | 
			
		||||
    default: 22
 | 
			
		||||
  proxy_username:
 | 
			
		||||
    description: 'ssh proxy username'
 | 
			
		||||
  proxy_password:
 | 
			
		||||
    description: 'ssh proxy password'
 | 
			
		||||
  proxy_passphrase:
 | 
			
		||||
    description: 'ssh proxy key passphrase'
 | 
			
		||||
  proxy_timeout:
 | 
			
		||||
    description: 'timeout for ssh to proxy host'
 | 
			
		||||
    default: "30s"
 | 
			
		||||
  proxy_key:
 | 
			
		||||
    description: 'content of ssh proxy private key. ex raw content of ~/.ssh/id_rsa'
 | 
			
		||||
  proxy_key_path:
 | 
			
		||||
    description: 'path of ssh proxy private key'
 | 
			
		||||
runs:
 | 
			
		||||
  using: 'docker'
 | 
			
		||||
  image: 'Dockerfile'
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user