安装 # cd /usr/ports/security/openssh # make install clean 添加自启动 # echo "sshd_enable=YES" >> /etc/rc.conf //启动服务 # /etc/rc.d/sshd start