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
Alternatively use system ssh client to connect (k0sproject/rig v0.15.1) (#568)
* Bump github.com/k0sproject/rig to v0.15.1
Signed-off-by: Kimmo Lehto <[email protected]>
* Add openssh test to workflow
Signed-off-by: Kimmo Lehto <[email protected]>
* Add openssh test to Makefile
Signed-off-by: Kimmo Lehto <[email protected]>
---------
Signed-off-by: Kimmo Lehto <[email protected]>
An alternative SSH client protocol that uses the system's openssh client for connections.
490
+
491
+
Example:
492
+
493
+
```yaml
494
+
spec:
495
+
hosts:
496
+
- role: controller
497
+
openSSH:
498
+
address: 10.0.0.2
499
+
```
500
+
501
+
The only required field is the `address` and it can also be a hostname that is found in the ssh config. All other options such as user, port and keypath will use the same defaults as if running `ssh` from the command-line or will use values found from the ssh config.
502
+
503
+
An example SSH config:
504
+
505
+
```
506
+
Host controller1
507
+
Hostname 10.0.0.1
508
+
Port 2222
509
+
IdentityFile ~/.ssh/id_cluster_esa
510
+
```
511
+
512
+
If this is in your `~/.ssh/config`, you can simply use the host alias as the address in your k0sctl config:
513
+
514
+
```yaml
515
+
spec:
516
+
hosts:
517
+
- role: controller
518
+
openSSH:
519
+
address: controller1
520
+
# if the ssh configuration is in a different file, you can use:
The default mode of operation is to use connection multiplexing where a ControlMaster connection is opened and the subsequent connections to the same host use the master connection over a socket to communicate to the host.
547
+
548
+
If this is disabled by setting `disableMultiplexing: true`, running every remote command will require reconnecting and reauthenticating to the host.
0 commit comments