3

The sshd daemon is not running on my machine (Ubuntu 12.04). I have repeatedly re-installed the openssh server and rebooted.

I get no output to this command:

ps -A | grep sshd

Any help would be greatly appreciated.

3
  • What happens when you run sudo start ssh? Sep 1, 2014 at 21:56
  • ssh start/running, process 16431 Sep 4, 2014 at 20:24
  • there is no need to purge openssh-server. After reinstallig sshd daemon will not run. check the permission of /var/run/sshd. It must be owned by root and not group or world writable. change permission chmod 755 /var/run/sshd. It will work .
    – AmitNarang
    Nov 17, 2016 at 9:47

2 Answers 2

2

Try removing it completely sudo apt-get purge openssh-server

And remove config dir mv /etc/ssh /etc/ssh_old

Then sudo mkdir /etc/ssh

Then install it again sudo apt-get install openssh-server

0

Thank you for your help! It ended up being that I needed to reinstall openssh-server. I ensured that the ssh was renamed to ssh_old, and I created a new ssh directory. I also had to ensure that any computer I used to remotely access this computer had its known_hosts file in the .ssh directory moved or deleted entirely.

This following website helped me find the solution (the website offers 3 solutions, I did solutions 1 & 3 which finally fixed it).

http://www.cyberciti.biz/faq/warning-remote-host-identification-has-changed-error-and-solution/

You must log in to answer this question.

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