Why the sshd service is unrecognized?

Dhoha picture Dhoha · Mar 19, 2014 · Viewed 24.2k times · Source

I'm trying to install hadoop, and I need to restart the sshd service in order to configure the connection between the nodes... However, whenever I write: service sshd restart a message error will be displayed telling me that this service is not recognized.

Any help to install this system?

Answer

vefthym picture vefthym · Mar 19, 2014

In Ubuntu, install sshd client and server with these commands:

sudo apt-get install openssh-client

and

sudo apt-get install openssh-server

Then, to restart sshd, type:

sudo /etc/init.d/ssh restart

This worked for me, when I had the same problem. You can find more information here.