1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-22 11:09:46 +01:00

Add default configuration for OpenSSH server

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
David Oberhollenzer 2018-08-31 21:30:49 +02:00
parent 601068d8ed
commit c29955adf5
3 changed files with 11 additions and 1 deletions

View file

@ -28,6 +28,8 @@ deploy() {
cp "$SCRIPTDIR/pkg/$PKGNAME/rootfs_files.txt" "$DEPLOY" cp "$SCRIPTDIR/pkg/$PKGNAME/rootfs_files.txt" "$DEPLOY"
mkdir -p "$DEPLOY/var/lib/sshd" mkdir -p "$DEPLOY/var/lib/sshd"
install -v -m755 "$SOURCE/contrib/ssh-copy-id" "$DEPLOY/bin" install -v -m755 "$SOURCE/contrib/ssh-copy-id" "$DEPLOY/bin"
cat_file_override "sshd_config" > "$DEPLOY/etc/sshd_config"
} }
check_update() { check_update() {

View file

@ -1 +1 @@
SERVICES="$SERVICES unbound dnsmasq" SERVICES="$SERVICES unbound dnsmasq sshd_keygen sshd"

View file

@ -0,0 +1,8 @@
HostKey /etc/ssh/host_rsa_key
HostKey /etc/ssh/host_ecdsa_key
HostKey /etc/ssh/host_ed25519_key
PermitRootLogin no
AuthorizedKeysFile .ssh/authorized_keys
X11Forwarding yes
Subsystem sftp /lib/libexec/sftp-server