mirror of
				https://github.com/appleboy/ssh-action.git
				synced 2025-10-31 00:10:11 +08:00 
			
		
		
		
	docs: update readme
This commit is contained in:
		
							parent
							
								
									8bd4933b73
								
							
						
					
					
						commit
						ffff33f8fe
					
				
							
								
								
									
										28
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										28
									
								
								README.md
									
									
									
									
									
								
							| @ -80,20 +80,28 @@ SSH Proxy Setting: | |||||||
| * proxy_cipher - the allowed cipher algorithms. If unspecified then a sensible | * proxy_cipher - the allowed cipher algorithms. If unspecified then a sensible | ||||||
| 
 | 
 | ||||||
| ### Setting up SSH Key | ### Setting up SSH Key | ||||||
|  | 
 | ||||||
| Make sure to follow the below steps while creating SSH Keys and using them. | Make sure to follow the below steps while creating SSH Keys and using them. | ||||||
| * Login with username specified in Github Secrets. | Login with username specified in Github Secrets. Generate a RSA Key-Pair: | ||||||
| * Generate a RSA Key-Pair.  | 
 | ||||||
|  ```bash |  ```bash | ||||||
|  ssh-keygen -t rsa -b 4096 -C "your_email@example.com" |  ssh-keygen -t rsa -b 4096 -C "your_email@example.com" | ||||||
|  ``` |  ``` | ||||||
| * Add newly generated key into Authorized keys. Read more about authorized keys [here](https://www.ssh.com/ssh/authorized_keys/). | 
 | ||||||
|     ```bash  | Add newly generated key into Authorized keys. Read more about authorized keys [here](https://www.ssh.com/ssh/authorized_keys/). | ||||||
|     cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys | 
 | ||||||
|     ``` | ```bash | ||||||
| * Copy Private Key content and paste in Github Secrets.  | cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys | ||||||
|    ```bash  | ``` | ||||||
|    clip < ~/.ssh/id_rsa | 
 | ||||||
|    ``` | Copy Private Key content and paste in Github Secrets. | ||||||
|  | 
 | ||||||
|  | ```bash | ||||||
|  | clip < ~/.ssh/id_rsa | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
|  | See the detail information about [SSH login without password](http://www.linuxproblem.org/art_9.html) | ||||||
|  | 
 | ||||||
| ### Example | ### Example | ||||||
| 
 | 
 | ||||||
| Executing remote ssh commands using password. | Executing remote ssh commands using password. | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Bo-Yi Wu
						Bo-Yi Wu