Add ability to use SSH and Telnet

This commit is contained in:
2026-10-01 12:53:31 +03:00
parent cc8a92eb00
commit b3bbf8c5aa
8 changed files with 46 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
telnet stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.telnetd
@@ -0,0 +1,5 @@
PermitRootLogin no
PasswordAuthentication yes
KbdInteractiveAuthentication no
PermitEmptyPasswords no
AllowUsers eraser
@@ -0,0 +1 @@
eraser ALL=(root) NOPASSWD: /usr/local/sbin/ep-eraser, /usr/local/bin/nwipe
@@ -0,0 +1,13 @@
[Unit]
Description=Configure EP Eraser remote login
Requires=live-config.service
After=live-config.service
Before=ssh.service openbsd-inetd.service
[Service]
Type=oneshot
ExecStart=/usr/local/sbin/ep-eraser-remote-setup
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
@@ -0,0 +1,4 @@
#!/bin/sh
set -eu
printf '%s\n' 'eraser:eperaser' | chpasswd