Create an SSH User with a non-interactive Shell

Create the Restricted System User

sudo useradd -r -s /bin/false -m -d /home/proxyuser proxyuser

Set Up Authentication

sudo passwd proxyuser

Configure SSH Daemon

sudo nano /etc/ssh/sshd_config
Match User proxyuser
    AllowAgentForwarding no
    AllowTcpForwarding yes
    X11Forwarding no
    PermitTTY no
    ForceCommand /bin/false

Restart the SSH Service

sudo systemctl restart ssh
# or
sudo systemctl restart sshd

 

Blank Screen on Ubuntu Server

Blank screen after idle: setterm --blank 1 (the number is the timeout in minutes)

Blank screen immediately: setterm --blank force

To turn the screen back on, run setterm --blank poke

Permanent Solution (Automatic on Boot)

sudo nano /etc/systemd/system/setterm-blank.service
[Unit]
Description=Blank screen after 1 minute idle
After=multi-user.target

[Service]
Type=oneshot
Environment="TERM=linux"
ExecStart=/usr/bin/setterm --blank 1 --term linux
StandardOutput=tty
TTYPath=/dev/tty0

[Install]
WantedBy=multi-user.target
sudo systemctl enable setterm-blank.service
sudo systemctl start setterm-blank.service

Or

sudo nano /etc/default/grub

Find the line GRUB_CMDLINE_LINUX_DEFAULT and add consoleblank=60 (60 = seconds before blanking):

GRUB_CMDLINE_LINUX_DEFAULT="quiet consoleblank=60"
sudo update-grub
sudo reboot