Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I build gentoo 3 days ago, and I installed openssh. When I run the command /etc/init.d/sshd start, and the bash varible $? is 0, as it suggestes nothing went wrong. But I can't find a sshd's pid by using the command ps -e |grep ssh. And the file /var/run/ does not exists either.

When I try this command ssh localhost,it refuse me because port 22 is not using.

share|improve this question

migrated from Mar 13 '13 at 4:23

This question came from our site for professional and enthusiast programmers. - that will refer you to the man page which will imply (or even state directly) that you need to generate keys.… – Ярослав Рахматуллин Mar 13 '13 at 6:28
You can try to start sshd from the command line in debug mode sshd -d (as root), which can help you to narrow down the problem. – mpy Mar 13 '13 at 16:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.