Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why the sshd service is unrecognized?

Tags:

ssh

hadoop

sshd

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?

like image 979
Dhoha Avatar asked Mar 19 '14 07:03

Dhoha


People also ask

What is sshd service in Linux?

The Secure Shell Daemon application (SSH daemon or sshd) is the daemon program for ssh. This program is an alternative to rlogin and rsh and provides encrypted communications between two untrusted hosts over an insecure network. The sshd is the daemon that listens for connections from clients on port 22.


2 Answers

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.

like image 177
vefthym Avatar answered Nov 22 '22 04:11

vefthym


Try these commands:

For Debian/Ubuntu

/etc/init.d/sshd restart

For RedHat and Fedora Core Linux

/sbin/service sshd restart
like image 38
Ahmed Shabrawy Avatar answered Nov 22 '22 04:11

Ahmed Shabrawy