You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: revamp and unify multi-language readme documentation
- Remove the Table of Contents section to simplify documentation.
- Add and reorganize introduction sections for a clearer project overview.
- Rename and clarify section titles for improved structure and navigation.
- Consolidate and expand explanatory text around SSH key setup, OpenSSH compatibility, security, and troubleshooting.
- Provide richer descriptions for core concepts and advanced SSH usage scenarios.
- Apply the same documentation improvements and structural changes across English, Simplified Chinese, and Traditional Chinese readme files for consistency.
Signed-off-by: appleboy <[email protected]>
-[Command not found (npm or other command)](#command-not-found-npm-or-other-command)
29
-
-[🤝 Contributing](#-contributing)
30
-
-[📝 License](#-license)
31
-
32
-
A [GitHub Action](https://github.com/features/actions) for executing remote SSH commands easily and securely.
5
+
---
6
+
7
+
## 📖 Introduction
8
+
9
+
**SSH for GitHub Actions** is a powerful [GitHub Action](https://github.com/features/actions) for executing remote SSH commands easily and securely in your CI/CD workflows.
10
+
Built with [Golang](https://go.dev) and [drone-ssh](https://github.com/appleboy/drone-ssh), it supports a wide range of SSH scenarios, including multi-host, proxy, and advanced authentication.
33
11
34
12

35
13
36
14
[](https://github.com/appleboy/ssh-action/actions/workflows/main.yml)
37
15
38
-
This project is built with [Golang](https://go.dev) and [drone-ssh](https://github.com/appleboy/drone-ssh).
39
-
40
16
---
41
17
42
-
## 📥 Input Parameters
18
+
## 🧩 Core Concepts & Input Parameters
19
+
20
+
This action provides flexible SSH command execution with a rich set of configuration options.
43
21
44
22
For full details, see [action.yml](./action.yml).
45
23
@@ -85,9 +63,9 @@ For full details, see [action.yml](./action.yml).
85
63
86
64
---
87
65
88
-
## 🚦 Usage Example
66
+
## ⚡ Quick Start
89
67
90
-
Run remote SSH commands in your workflow:
68
+
Run remote SSH commands in your workflow with minimal configuration:
91
69
92
70
```yaml
93
71
name: Remote SSH Command
@@ -121,17 +99,19 @@ linuxserver.io
121
99
122
100
---
123
101
124
-
## 🔑 Setting Up SSH Keys
102
+
## 🔑 SSH Key Setup & OpenSSH Compatibility
103
+
104
+
### Setting Up SSH Keys
125
105
126
106
It is best practice to create SSH keys on your local machine (not on a remote server). Log in with the username specified in GitHub Secrets and generate a key pair:
This section covers common and advanced usage patterns, including multi-host, proxy, and environment variable passing.
203
183
204
184
### Using password authentication
205
185
@@ -331,7 +311,9 @@ Default `port` is `22`.
331
311
332
312
---
333
313
334
-
## 🌐 Using ProxyCommand (Jump Host)
314
+
## 🌐 Proxy & Jump Host Usage
315
+
316
+
You can connect to remote hosts via a proxy (jump host) for advanced network topologies.
335
317
336
318
```bash
337
319
+--------+ +----------+ +-----------+
@@ -376,7 +358,9 @@ Host FooServer
376
358
377
359
---
378
360
379
-
## 🔒 Protecting Your Private Key
361
+
## 🛡️ Security Best Practices
362
+
363
+
### Protecting Your Private Key
380
364
381
365
A passphrase encrypts your private key, making it useless to attackers if leaked. Always store your private key securely.
382
366
@@ -394,9 +378,7 @@ A passphrase encrypts your private key, making it useless to attackers if leaked
394
378
ls -al
395
379
```
396
380
397
-
---
398
-
399
-
## 🖐️ Host Fingerprint Verification
381
+
### Host Fingerprint Verification
400
382
401
383
Verifying the SSH host fingerprint helps prevent man-in-the-middle attacks. To get your host's fingerprint (replace `ed25519` with your key type and `example.com` with your host):
402
384
@@ -422,9 +404,11 @@ Update your config:
422
404
423
405
---
424
406
425
-
## ❓ Q&A
407
+
## 🚨 Error Handling & Troubleshooting
408
+
409
+
### Q&A
426
410
427
-
### Command not found (npm or other command)
411
+
#### Command not found (npm or other command)
428
412
429
413
If you encounter "command not found" errors, see [this issue comment](https://github.com/appleboy/ssh-action/issues/31#issuecomment-1006565847) about interactive vs non-interactive shells.
[](https://github.com/appleboy/ssh-action/actions/workflows/main.yml)
0 commit comments