mirror of
https://github.com/pygos/build.git
synced 2024-11-22 02:59:47 +01:00
Add default configuration for OpenSSH server
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
601068d8ed
commit
c29955adf5
3 changed files with 11 additions and 1 deletions
|
@ -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() {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
SERVICES="$SERVICES unbound dnsmasq"
|
SERVICES="$SERVICES unbound dnsmasq sshd_keygen sshd"
|
||||||
|
|
8
product/router/sshd_config
Normal file
8
product/router/sshd_config
Normal 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
|
Loading…
Reference in a new issue