7

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?

4
  • @Christopher yes, thanks. Want to add this as answer? Commented Jan 18, 2013 at 2:44
  • 1
    chkconfig should be forwarded to systemctl and just work. What do you mean by "only starting when a user is logged in"?
    – mattdm
    Commented Jan 18, 2013 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 Commented Jan 19, 2013 at 2:48
  • 1
    @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
    Commented Jan 19, 2013 at 3:24

2 Answers 2

11

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
1

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .