Skip to content

Commit ba5dc0e

Browse files
committed
DOC: Document usage of integrated ssh agent when testing passwordless ssh
1 parent 10f9b1e commit ba5dc0e

2 files changed

Lines changed: 28 additions & 10 deletions

File tree

content/software/installation_process/cluster_installation/kvm_node_installation.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -213,20 +213,29 @@ scp -p /var/lib/one/.ssh/id_rsa <node3>:/var/lib/one/.ssh/
213213
214214
You should verify that none of these connections (under user `oneadmin`) fail and none require a password:
215215
216-
* from the Front-end to Front-end itself
217-
* from the Front-end to all nodes
218-
* from all nodes to all nodes
219-
* from all nodes back to Front-end
216+
* From the Front-end to Front-end itself
217+
* From the Front-end to all nodes
218+
* From all nodes to all nodes
219+
* From all nodes back to Front-end
220+
221+
{{< alert title="SSH Agent Forwarding" type="info" >}}
222+
If you are using the integrated SSH authentication agent service (and did not distribute the private key to the nodes), you must use the agent socket on the Front-end and pass the agent forwarding flag (-A) on your initial connections to nodes. This securely proxies your authentication keys through the hop to validate multi-hop connections.
223+
224+
If you followed the optional step to manually distribute the oneadmin private key to your nodes, exporting the socket and utilizing the -A flag is not required.
225+
{{< /alert >}}
220226
221227
For example, execute on the Front-end:
222228
223229
```shell
230+
# use the integrated SSH authentication agent
231+
export SSH_AUTH_SOCK=/var/run/one/ssh-agent.sock
232+
224233
# from Front-end to Front-end itself
225234
ssh <frontend>
226235
exit
227236

228237
# from Front-end to node, back to Front-end and to other nodes
229-
ssh <node1>
238+
ssh -A <node1>
230239
ssh <frontend>
231240
exit
232241
ssh <node2>
@@ -236,7 +245,7 @@ exit
236245
exit
237246

238247
# from Front-end to node, back to Front-end and to other nodes
239-
ssh <node2>
248+
ssh -A <node2>
240249
ssh <frontend>
241250
exit
242251
ssh <node1>
@@ -246,7 +255,7 @@ exit
246255
exit
247256

248257
# from Front-end to nodes and back to Front-end and other nodes
249-
ssh <node3>
258+
ssh -A <node3>
250259
ssh <frontend>
251260
exit
252261
ssh <node1>

content/software/installation_process/cluster_installation/lxc_node_installation.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,15 +198,24 @@ You should verify that none of these connections (under user `oneadmin`) fail an
198198
* From all nodes to all nodes
199199
* From all nodes back to Front-end
200200
201+
{{< alert title="SSH Agent Forwarding" type="info" >}}
202+
If you are using the integrated SSH authentication agent service (and did not distribute the private key to the nodes), you must use the agent socket on the Front-end and pass the agent forwarding flag (-A) on your initial connections to nodes. This securely proxies your authentication keys through the hop to validate multi-hop connections.
203+
204+
If you followed the optional step to manually distribute the oneadmin private key to your nodes, exporting the socket and utilizing the -A flag is not required.
205+
{{< /alert >}}
206+
201207
For example, execute on the Front-end:
202208
203209
```shell
210+
# use the integrated SSH authentication agent
211+
export SSH_AUTH_SOCK=/var/run/one/ssh-agent.sock
212+
204213
# from Front-end to Front-end itself
205214
ssh <frontend>
206215
exit
207216

208217
# from Front-end to node, back to Front-end and to other nodes
209-
ssh <node1>
218+
ssh -A <node1>
210219
ssh <frontend>
211220
exit
212221
ssh <node2>
@@ -216,7 +225,7 @@ exit
216225
exit
217226

218227
# from Front-end to node, back to Front-end and to other nodes
219-
ssh <node2>
228+
ssh -A <node2>
220229
ssh <frontend>
221230
exit
222231
ssh <node1>
@@ -226,7 +235,7 @@ exit
226235
exit
227236

228237
# from Front-end to nodes and back to Front-end and other nodes
229-
ssh <node3>
238+
ssh -A <node3>
230239
ssh <frontend>
231240
exit
232241
ssh <node1>

0 commit comments

Comments
 (0)