I have set following to automatically logout and disconnect any user connected through console or ssh after 10 minutes of inactivity:
set system login timeout 600
However the above doesnt work as expected (or Im perhaps missing some configuration?).
Login timeout doesnt work when user is in "sudo bash" doing nothing, "sudo bash" running htop or as regular user running "monitor bandwidth interface *". Basically anything that renders a screen update invalidates the timeout timer (as it seems).
However login as regular user and then doing nothing will fire the timeout and user will be logged out from ssh after 10 minutes of inactivity as expected:
vyos@vyos:~$ timed out waiting for input: auto-logout