I have several remote systems connecting to my server via SSH to establish tunnels.
They authenticate using a public key, their user is locked and their shell is set to /usr/sbin/nologin
It all works fine except with this setup the output from
last username is empty for those accounts.
Is there a workaround to get last login info for those? I need the IP and connection time.
Thank you for reading.