As a follow up to my previous question, I have decided to create the local user accounts as below.
adduser --system --no-create-home USERNAME
Now, I would like the local users to be able to access the machines using ssh
. As per my understanding, ssh
works as below.
Assuming I have 2 machines (say alpha and beta).
- From alpha machine:
ssh user@beta
- alpha's public key will be present under
~/.ssh/authorized_keys
in beta machine. - alpha's private key will be present under
/~/.ssh
in the alpha machine.
Now I have planned to implement no home for the users. So assuming I adduser
into beta machine without any home for any user, will I still be able to ssh into beta from alpha?