diff options
author | Cullum Smith <cullum@sacredheartsc.com> | 2024-09-24 22:35:45 -0400 |
---|---|---|
committer | Cullum Smith <cullum@sacredheartsc.com> | 2024-09-24 22:35:45 -0400 |
commit | 6e00c9e8137aae1fb8dd568a62d9fb5fc4a277cb (patch) | |
tree | 9279f7a330affbb5da6a1f147739b8dfd92d4a19 /scripts/os/freebsd/30-ssh | |
parent | d9c18b3fcb9b036b6cdf69397828b59ab4c53091 (diff) | |
download | infrastructure-6e00c9e8137aae1fb8dd568a62d9fb5fc4a277cb.tar.gz |
finish up idm_server hostclass
Diffstat (limited to 'scripts/os/freebsd/30-ssh')
-rw-r--r-- | scripts/os/freebsd/30-ssh | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/scripts/os/freebsd/30-ssh b/scripts/os/freebsd/30-ssh deleted file mode 100644 index 7a57943..0000000 --- a/scripts/os/freebsd/30-ssh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh - -# Create state dataset to persist SSH host keys across OS rebuilds. -create_dataset -o "mountpoint=${ssh_host_key_dir}" "${state_dataset}/ssh" - -# If the state dataset contains existing host keys, symlink them into -# /etc/ssh. -# -# If not, this is the first time we are building this box, so copy the -# autogenerated host keys to the state partition. -for key in \ - ssh_host_ecdsa_key \ - ssh_host_ed25519_key \ - ssh_host_rsa_key -do - [ -f "${ssh_host_key_dir}/${key}" ] || \ - mv -v "/etc/ssh/${key}" "/etc/ssh/${key}.pub" "$ssh_host_key_dir" - - ln -snvf "${ssh_host_key_dir}/${key}" "/etc/ssh/${key}" - ln -snvf "${ssh_host_key_dir}/${key}.pub" "/etc/ssh/${key}.pub" -done - -# Copy SSH configs. -install_directory -m 0755 /etc/ssh/sshd_config.d - -install_template -m 0644 \ - /etc/ssh/sshd_config \ - /etc/ssh/ssh_config - -# Restart sshd. -sysrc -v sshd_enable=YES -service sshd restart |