document ssh host trust

This commit is contained in:
2023-05-30 17:13:46 +02:00
parent d28921f0cb
commit 87f63fc909
2 changed files with 26 additions and 0 deletions

View File

@@ -7,4 +7,5 @@ Here starts a so far small collections of configuration guides for sysadmins of
- [Custom Nameservers](configuration/custom_nameservers)
## Special Installations
- [SSH Host Hopping as Root (e.g. between cluster members)](configuration/ssh_host_hopping)
- [Install Citrix VDA](configuration/citrix_vda)

View File

@@ -0,0 +1,25 @@
# SSH Host Hopping as Root (e.g. between cluster members)
This is to allow the user `root` on a given machine to log in as `root` onto another machine without using a password or a similar authentication.
The `ssh_server::root_host_trust` list in Hiera configures from which devices root is allowed to connect without special configuration:
```
ssh_server::root_host_trust:
- 'lxdev04.psi.ch'
- 'lxdev05.psi.ch'
```
From security perspective this nodes should have the same or stricter security rules/setup that the target host.
To actually use host trust the client also needs to configure that while connecting, e.g. in Hiera:
```
ssh_client::try_host_trust: true
```
or spontaneously on the ssh command line with:
```
ssh -o HostbasedAuthentication=yes ...
```
or by setting `HostbasedAuthentication yes` in the appropriate place in the ssh configuration (e.g. `~/.ssh/config`).