English
Ask Your Question
1

Unable to start ssh

asked 2014-08-16 14:40:14 +0000

Gaurav Dighe gravatar image

updated 2014-08-17 00:49:52 +0000

hello 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
0

answered 2014-08-16 14:50:23 +0000

NikTh gravatar image

updated 2014-08-16 14:53:06 +0000

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

Comments

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"

hello ( 2014-08-17 00:49:16 +0000 )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.

NikTh ( 2014-08-17 02:36:15 +0000 )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 ( 2014-08-17 10:26:13 +0000 )edit

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

hello ( 2014-08-17 10:31:57 +0000 )edit

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

NikTh ( 2014-08-17 14:16:26 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Stats

Asked: 2014-08-16 14:40:14 +0000

Seen: 1,751 times

Last updated: Aug 16 '14