Skip to content

Commit

Permalink
Merge pull request #119 from mariux64/add-admin-sshd
Browse files Browse the repository at this point in the history
Add admin sshd on port 48222 on bka
  • Loading branch information
pmenzel authored Apr 6, 2020
2 parents 6701790 + a5d7dcc commit 62c917b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,5 @@ install_data misc_etc_files/modprobe.d/nfs_slotlimit.conf "$DESTDIR$sysconfdir/m
install_data misc_etc_files/rsyslog.conf "$DESTDIR$sysconfdir/rsyslog.conf"
install_data crashkernel/crashkernel.service "$DESTDIR$systemdunitdir/crashkernel.service"
install_exec crashkernel/crash-recovery.sh "$DESTDIR$root_sbindir/crash-recovery.sh"
install_data misc_systemd_units/admin-sshd.service "$DESTDIR$systemdunitdir/admin-sshd.service"
exit
13 changes: 13 additions & 0 deletions misc_systemd_units/admin-sshd.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Unit]
Description=Admin sshd
After=network.target

ConditionHost=|bka.molgen.mpg.de

[Service]
EnvironmentFile=/etc/local/mxhost.conf
ExecStart=/usr/sbin/sshd -D -o "ListenAddress ${MX_IPADDR}:48222" -o "AllowGroups admin"
Restart=always

[Install]
WantedBy=multi-user.target

0 comments on commit 62c917b

Please sign in to comment.