Ask Your Question

Unable to start ssh

asked 2014-08-16 09:40:14 -0500

Gaurav Dighe gravatar image

updated 2014-08-16 19:49:52 -0500

abadrinath gravatar image

Hello I have Fedora 20 installed with Cinnamon Desktop. When I call sudo service ssh start, Its not getting started..

I also checked if there is /usr/sbin/ for sshd and sshd-keygen. But it is not there. Please help.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-08-16 09:50:23 -0500

NickTux gravatar image

updated 2014-08-16 09:53:06 -0500

The command you are giving is an upstart command. Fedora uses the systemd . You should run

sudo systemctl start sshd.service

or if you want the service to be started at every system boot,

sudo systemctl enable sshd.service

Of course you must have the appropriate packages installed (openssh-server and openssh).

If you want to learn more about systemd, start with the Fedora Wiki.

For more advanced topics, you can visit the documentation.

edit flag offensive delete link more


But, the service command works for me. For example:

sudo service tlp start
Redirecting to /bin/systemctl start  tlp.service

I don't see any reason why it shouldn't work. Maybe he's not using root to run this command. @Gaurav Dighe, try running su -c "service sshd start"

abadrinath gravatar imageabadrinath ( 2014-08-16 19:49:16 -0500 )edit

My guess is that the appropriate packages are not installed. As for the service, yes it works but it's a redirection to systemctl. Better to use the systemd directly and learn it, than using a deprecated command that is likely to be removed at near future.

NickTux gravatar imageNickTux ( 2014-08-16 21:36:15 -0500 )edit

I tried sudo service sshd start

Below is the output

Redirecting to /bin/systemctl start sshd.service Job for sshd.service failed. See 'systemctl status sshd.service' and 'journalctl -xn' for details.

Gaurav Dighe gravatar imageGaurav Dighe ( 2014-08-17 05:26:13 -0500 )edit

Then, try sudo yum erase openssh; sudo yum autoremove; sudo yum install openssh

abadrinath gravatar imageabadrinath ( 2014-08-17 05:31:57 -0500 )edit

Please give the resuls of sudo systemctl status sshd.service and sudo journalctl -u sshd.service

NickTux gravatar imageNickTux ( 2014-08-17 09:16:26 -0500 )edit

Question Tools


Asked: 2014-08-16 09:40:14 -0500

Seen: 2,369 times

Last updated: Aug 16 '14