File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,8 @@ As a result, autossh detects the connection problem and restarts SSH.
106
106
107
107
## Key generation
108
108
109
- You need two pairs of SSH keys to establish a secure SSH connection.
109
+ You need two SSH key pairs to establish a secure SSH connection
110
+ without the risk of MITM (Man-In-The-Middle) attacks.
110
111
We encode the private keys in base64 format to pass them as environment variables.
111
112
112
113
``` shell
@@ -117,6 +118,10 @@ ssh-keygen -t ed25519 -N '' -C key2-$(date -I) -f key2
117
118
cat key2 | base64 -w 0 > key2.base64
118
119
```
119
120
121
+ > [ !WARNING]
122
+ > Make sure both private keys are kept secret.
123
+ > Any file containing a private key should be protected with proper file permissions.
124
+
120
125
## Example usage
121
126
122
127
In this example, both client and server containers are run on the same host.
You can’t perform that action at this time.
0 commit comments