Skip to content

Commit 1b59741

Browse files
jaysa6824apricots
authored andcommitted
fix: krb5 ticket forwarding (#227)
* use openssh_gssapi for sshd on all hosts * GSSAPIKeyExchange = yes if host has a keytab * test an option * ticket forwarding flag * undo unhelpful option * test without specifying openssh package * implement oliver suggestions --------- Co-authored-by: 24apricots <michaelzls@berkeley.edu>
1 parent 3ceb26e commit 1b59741

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

profiles/desktop.nix

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,19 @@ in
116116
# More info: https://nix.dev/guides/faq#how-to-run-non-nix-executables
117117
programs.nix-ld.enable = true;
118118

119-
# Enable ticket forwarding on desktops (no password when sshing to other ocf hosts from the desktops thru supernova!)
120-
# disabled on everything else bc they dont need to jump through hosts like that...
119+
# Add forward flag to tickets on desktops
120+
security.krb5.settings.libdefaults.forwardable = true;
121+
122+
# Only forward Kerberos tickets to login servers (fluttershy and rainbowdash)
121123
programs.ssh.extraConfig = lib.mkOverride 90 ''
122124
CanonicalizeHostname yes
123125
CanonicalDomains ocf.berkeley.edu
124-
Host *.ocf.berkeley.edu *.ocf.io 169.229.226.* 2607:f140:8801::*
126+
Host fluttershy.ocf.berkeley.edu rainbowdash.ocf.berkeley.edu
125127
GSSAPIAuthentication yes
126128
GSSAPIKeyExchange yes
127129
GSSAPIDelegateCredentials yes
130+
Host *.ocf.berkeley.edu *.ocf.io 169.229.226.* 2607:f140:8801::*
131+
GSSAPIAuthentication yes
132+
GSSAPIKeyExchange yes
128133
'';
129-
# TODO: only forward kerberos tickets to login servers (currently supernova and tsunami)!
130134
}

0 commit comments

Comments
 (0)