From https://unix.stackexchange.com/a/489913/674
connecting using SSH counts as logging in.
From How can I run a process as its owner or become its owner without logging in?
connecting with SSH, doesn’t involve
login
How does sshd perform logging in activity? Is it not done by invoking the login program?
Although not showing ssh directly, APUE shows a figure for how rlogin works, and also says
We show two calls to exec between the
rlogindserver and the login shell, because theloginprogram is usually between the two to validate the user.
Does sshd also exec login to perform logging in?
Thanks.
