- 论坛徽章:
- 0
|
查阅资料,通过以下几步配置:
1、编辑/etc/rc.conf,最后加入:sshd_enable="yes" 此设置是允许sshd运行,激活sshd服务
2、编辑/etc/ssh/sshd_config -------一定要是sshd_config这个文件,因为里面还有一个ssh_config,开始弄了半天不行,汗!
PermitRootLogin yes #允许root登录
PermitEmptyPasswords no #不允许空密码登录
PasswordAuthentication yes # 设置是否使用口令验证。
3、重启freeBSD
如果重启后还是不行请重新载入sshd_config 文件
/etc/rc.d/sshd reload
最后一点要确认是否有安装SSH
sysinstall>>>configure>>>networking>>>sshd是否的勾是否有打上
可是还是连接不了,ssh客户端提示“Server responded ‘Algorithm negotiation failed ’ Key exchange with the remote host failed.this can happen for example if the remote host computer does not support the selected algorithms” |
|