This is a method to create an email-only user who cannot log in with ssh. I confirmed it on ubuntu 20.10.
Limit users who can log in to taro and hanako
/etc/ssh/sshd_config
(abridgement)
AllowUsers taro hanako
Create an email user
sudo adduser --uid 1511 scott
Verification
- Send the email to the user who created it [email protected]
- Confirm receipt of email
- Confirm that you cannot log in with ssh
Recommended Posts