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
    Commented Aug 26, 2013 at 23:34
  • Actually, auto-login without X (or before X).
    – Andrew
    Commented Aug 27, 2013 at 4:12

1 Answer 1


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
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 and acknowledge you have read our privacy policy.

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