Skip to content

Commit

Permalink
Add admin sshd on port 48222 on bka
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Mar 26, 2020
1 parent d620584 commit a6053f6
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 @@ -156,4 +156,5 @@ install_data applications-defaults/defaults.list "$DESTDIR$usr_prefix/s
install_data misc_etc_files/modprobe.d/nfs_slotlimit.conf "$DESTDIR$sysconfdir/modprobe.d/nfs_slotlimit.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 a6053f6

Please sign in to comment.