diff options
author | Ivan Mincik <ivan.mincik@gmail.com> | 2023-11-25 19:14:10 +0100 |
---|---|---|
committer | Ivan Mincik <ivan.mincik@gmail.com> | 2023-11-26 09:34:51 +0100 |
commit | df254b2dd23b77a4da7f9e338becbf19bd829594 (patch) | |
tree | ed6b7900e040a0c3aeac65b41cea35fa894e9578 /nixos | |
parent | d9229abc0b4fe558a992d6e2e4acb4e162fd5934 (diff) |
nixos/tmate-ssh-server: fix tmate-client-config script
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/networking/tmate-ssh-server.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/networking/tmate-ssh-server.nix b/nixos/modules/services/networking/tmate-ssh-server.nix index ff4ce0773309f..91cb79ae24793 100644 --- a/nixos/modules/services/networking/tmate-ssh-server.nix +++ b/nixos/modules/services/networking/tmate-ssh-server.nix @@ -81,12 +81,12 @@ in [ (pkgs.writeShellApplication { name = "tmate-client-config"; - runtimeInputs = with pkgs;[ openssh coreutils sd ]; + runtimeInputs = with pkgs;[ openssh coreutils ]; text = '' RSA_SIG="$(ssh-keygen -l -E SHA256 -f "${keysDir}/ssh_host_rsa_key.pub" | cut -d ' ' -f 2)" ED25519_SIG="$(ssh-keygen -l -E SHA256 -f "${keysDir}/ssh_host_ed25519_key.pub" | cut -d ' ' -f 2)" - sd -sp '@ed25519_fingerprint@' "$ED25519_SIG" ${tmate-config} | \ - sd -sp '@rsa_fingerprint@' "$RSA_SIG" + sed "s|@ed25519_fingerprint@|$ED25519_SIG|g" ${tmate-config} | \ + sed "s|@rsa_fingerprint@|$RSA_SIG|g" ''; }) ]; |