zero-system: ssh and sshd configs

This commit is contained in:
Rick Farina (Zero_Chaos) 2025-10-15 16:33:29 -04:00
parent adf2b4b001
commit 4b3af6e130
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
3 changed files with 12 additions and 2 deletions

View file

@ -0,0 +1,7 @@
Host *
ControlMaster auto
ControlPath ~/.ssh/sockets/%r@%h-%p
ControlPersist 3600
Compression yes
PasswordAuthentication no
PreferredAuthentications publickey

View file

@ -135,9 +135,12 @@ src_install() {
keepdir /etc/skel/.vim-scratch
insinto /etc/ssh/sshd_config.d
doins "${FILESDIR}"/zero-system.conf
fperms 600 '/etc/ssh/sshd_config.d/zero-system.conf'
doins "${FILESDIR}"/zero-system-sshd.conf
fperms 600 '/etc/ssh/sshd_config.d/zero-system-sshd.conf'
insinto /etc/ssh/ssh_config.d
doins "${FILESDIR}"/zero-system-ssh.conf
fperms 644 '/etc/ssh/ssh_config.d/zero-system-ssh.conf'
}
pkg_postinst() {