diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-07 01:20:46 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-07 01:20:46 +0200 |
| commit | d48e81d214584898e0654b9c61620d65ecc99a99 (patch) | |
| tree | 47875d2c92afb3044e6d4908638e4fe26e4003f2 /modules | |
| parent | modules/backup: Don't backup games (diff) | |
| download | nixos-config-d48e81d214584898e0654b9c61620d65ecc99a99.zip | |
modules/ssh: Add config for hetzner's storageboxes
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/by-name/ss/ssh/module.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/by-name/ss/ssh/module.nix b/modules/by-name/ss/ssh/module.nix index 87c50728..39c203fd 100644 --- a/modules/by-name/ss/ssh/module.nix +++ b/modules/by-name/ss/ssh/module.nix @@ -55,6 +55,13 @@ in { text = cfg.rootKnownHosts; }) ); + "Host *.your-storagebox.de" = { + # Don't try to authenticate via password for these, because we need to use the + # forced commands, and they are only provided via the ssh key login. + # So password login is a footgun (it is, however, valid to use it for non-root + # use-cases) + PasswordAuthentication = false; + }; }; }; @@ -64,6 +71,11 @@ in { settings = { "Host *" = mkDefaultMatchBlock "${config.home-manager.users.soispha.xdg.dataHome}/ssh/known_hosts"; + "Host *.your-storagebox.de" = { + # Port 22 is for sftp, and when we connect as user, we probably want an + # interactive shell. + Port = 23; + }; }; }; }; |
