Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've just installed Fedora 18, and trying to configure sshd - I used chkconfig but this is only starting sshd when a user is logged in. How do I change so that sshd starts on system boot?

share|improve this question
It seems the documentation may be lagging behind the release. Does the Fedora 17 method work? systemctl enable sshd.service – Christopher Jan 18 '13 at 2:08
@Christopher yes, thanks. Want to add this as answer? – David John Smith Jan 18 '13 at 2:44
chkconfig should be forwarded to systemctl and just work. What do you mean by "only starting when a user is logged in"? – mattdm Jan 18 '13 at 15:39
@mattdm I mean that I was not able to ssh in to the machine until the user had logged in. I thought it was to do with run level, however I'm a noob and could be mistaken – David John Smith Jan 19 '13 at 2:48
@David That's very strange.... Oh! Was the network user controlled? It's possible that the net was only up when someone was logged in. – mattdm Jan 19 '13 at 3:24
up vote 7 down vote accepted

Try the Fedora 17 method...

systemctl enable sshd.service

This will enable sshd so it starts on the next boot and every subsequent boot, but it won't immediately start up sshd.

At this point you can either reboot (which will start it up) or start it manually using

systemctl start sshd.service
share|improve this answer

I had the same issue in Fedora 21, I finally zeroed out the Listening Address,ListenAddress and now when they system reboots I am able to SSH without logging into the system first.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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