I'm not sure how to do this. Documentation is not clear at all. I can get root privilege/be root so that's not a problem, I just don't know what to do.

I'm thinking it's either modifying the sshd_config file (AllowUsers?) or else there is some line command that grants the privilege.

Also, it would be nice if I could "dry run" the config file, as I need to restart the ssh daemon and my only access to the machine is via ssh, so it would be great if I didn't bunk that up.

A clear answer will be greatly appreciated.

  • 1
    Restarting the ssh service doesn't break the existing ssh connections so you should be able to test your settings without (too much) risk.
    – jlliagre
    May 6, 2014 at 14:19
  • OK, that's good to know.
    – Jiminion
    May 6, 2014 at 14:31

1 Answer 1


If that user already exists, and SSH is in it's default configuration, you don't need to do anything. Unless you (or a predecessor) have restricted which users are allowed, sshd will allow any existing user to SSH in to the box. If there is an error message you are getting, you'll need to add it to the original post so we can see what's happening.

  • There are no error messages. It just seems to reject the password. It doesn't reject the password for root.
    – Jiminion
    May 6, 2014 at 14:26
  • What appears in the logs? If it thinks you're getting the password wrong, it'll show an "authentication failed" message in your system logs.
    – John
    May 6, 2014 at 14:39
  • Ugh. It turned out to be a password problem. Thank you!
    – Jiminion
    May 6, 2014 at 15:00
  • It won't let me select the answer. I am trying to merge with my StackOverflow identity. Guess I don't know how the different exchanges play together....
    – Jiminion
    May 6, 2014 at 15:14

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.