mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
zero-system: ssh and sshd configs
This commit is contained in:
parent
adf2b4b001
commit
4b3af6e130
3 changed files with 12 additions and 2 deletions
7
pentoo/zero-system/files/zero-system-ssh.conf
Normal file
7
pentoo/zero-system/files/zero-system-ssh.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
Host *
|
||||||
|
ControlMaster auto
|
||||||
|
ControlPath ~/.ssh/sockets/%r@%h-%p
|
||||||
|
ControlPersist 3600
|
||||||
|
Compression yes
|
||||||
|
PasswordAuthentication no
|
||||||
|
PreferredAuthentications publickey
|
||||||
|
|
@ -135,9 +135,12 @@ src_install() {
|
||||||
keepdir /etc/skel/.vim-scratch
|
keepdir /etc/skel/.vim-scratch
|
||||||
|
|
||||||
insinto /etc/ssh/sshd_config.d
|
insinto /etc/ssh/sshd_config.d
|
||||||
doins "${FILESDIR}"/zero-system.conf
|
doins "${FILESDIR}"/zero-system-sshd.conf
|
||||||
fperms 600 '/etc/ssh/sshd_config.d/zero-system.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() {
|
pkg_postinst() {
|
||||||
Loading…
Reference in a new issue