OpenSSH start but does not work

Salamo Alikom
i had install both OpenSSL and OpenSSH-portable from ports then i start by typing :
Code:
./etc/rc.d/sshd start
it is start normaly with out any msg but when i try to connect from remote computer or local i get this message :
Code:
ssh :connect to host 10.0.0.1 port 22 connection refused
the output of :
sockstat -l -P tcp
is nothing .
 
in case of openssh-portable, you need to start it with /usr/local/etc/rc.d/openssh rc.d script.

Don't forget to set the
Code:
openssh_enable="YES"
variable in /etc/rc.conf.
 
SIFE said:
i had install .. OpenSSH-portable from ports...

Do you know openssh is already included in the base system? (That's what the rc script that you were initially using belongs to.)
 
@anomie
i know that but when it is not work i decide to install OpenSSH-portable .
@gripek
i try your suggestion and it is work for me .
i found to star openssh server that come with sys is first to add it in rc.conf and then reboot sys finaly start it from terminal ,i hope this will be as not in documentation .
 
Back
Top