💾 Archived View for gmi.noulin.net › 2024-07-05-ssh-apps.gmi captured on 2024-08-25 at 09:13:34. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
date: 2024-07-05 08:55:06
categories: linux
firstPublishDate: 2024-07-05 08:55:06
I setup an ssh kiosk in open access like a webpage, the password is empty and there are no keys.
ssh kiosk@apps.noulin.net yes
When you connect to it, you see a menu and you can start my TUIs.
Close the apps by pressing `esc` or `q` multiple times
adduser kiosk
printf '%s\n' 'kiosk:U6aMy0wojraho' | chpasswd -e
vi /etc/ssh/sshd_config Match User kiosk PasswordAuthentication yes PermitEmptyPasswords yes ForceCommand /home/kiosk/tcalc X11Forwarding no AllowTcpForwarding no
service sshd restart
`adduser` and `passwd` don't accept empty password, `passwd -d` disables the password and it is not possible to login. That's why I use `printf` and `chpasswd` to set an empty password.