Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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/sshd.pid 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 stackoverflow.com Mar 13 '13 at 4:23

This question came from our site for professional and enthusiast programmers.

wiki.gentoo.org/wiki/SSH - that will refer you to the man page which will imply (or even state directly) that you need to generate keys. whattheit.wordpress.com/2011/05/24/… –  Ярослав Рахматуллин 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.