mirror of
				https://github.com/appleboy/ssh-action.git
				synced 2025-10-31 20:13:53 +00:00 
			
		
		
		
	docs: improve cross-platform clipboard support for key copying
- Add instructions to install `xclip` on Ubuntu before copying the private key - Replace `clip` command with platform-specific commands (`pbcopy` for macOS and `xclip` for Ubuntu) for copying the private key Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
		
							parent
							
								
									5ade826485
								
							
						
					
					
						commit
						28428a13f5
					
				
							
								
								
									
										19
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								README.md
									
									
									
									
									
								
							| @ -122,14 +122,29 @@ Copy Private Key content and paste in Github Secrets. | ||||
| 
 | ||||
| ### Copy rsa Private key | ||||
| 
 | ||||
| Before copying the private key, install `clip` command as shown below: | ||||
| 
 | ||||
| ```bash | ||||
| clip < ~/.ssh/id_rsa | ||||
| # Ubuntu | ||||
| sudo apt-get install xclip | ||||
| ``` | ||||
| 
 | ||||
| copy the private key: | ||||
| 
 | ||||
| ```bash | ||||
| # macOS | ||||
| pbcopy < ~/.ssh/id_rsa | ||||
| # Ubuntu | ||||
| xclip < ~/.ssh/id_rsa | ||||
| ``` | ||||
| 
 | ||||
| ### Copy ed25519 Private key | ||||
| 
 | ||||
| ```bash | ||||
| clip < ~/.ssh/id_ed25519 | ||||
| # macOS | ||||
| pbcopy < ~/.ssh/id_ed25519 | ||||
| # Ubuntu | ||||
| xclip < ~/.ssh/id_ed25519 | ||||
| ``` | ||||
| 
 | ||||
| See the detail information about [SSH login without password](http://www.linuxproblem.org/art_9.html). | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user