2

I want to create a user to auto-login without a password. However, I don't want someone to be able to SSH as that user since the user will not have a password. How can I create a user without a password and no SSH access? I am running Raspbian.

  • 1
    Are you planning to enable auto-login through X, or were you thinking of playing with the pam config to make it work from terminals etc? – Gagravarr Aug 26 '13 at 23:34
  • Actually, auto-login without X (or before X). – Andrew Aug 27 '13 at 4:12
5

Create the user like normal and setup the auto login how you want it,
Then add the user to DenyUsers in /etc/ssh/sshd_config
e.g.
DenyUser autologinuser
Restart ssh after you update the config file.

Reference : http://linux.die.net/man/5/sshd_config

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.