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.

migrated from stackoverflow.com Mar 13 '13 at 4:23

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

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.