chenxk10 发表于 2017-09-14 09:55

SSH连接FreeBSD按照网上大神们配置,还是连接不了,请问我还能怎么改?

查阅资料,通过以下几步配置:
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”

chenxk10 发表于 2017-09-14 10:39

在线等。。。。。

lsstarboy 发表于 2017-09-15 17:22

客户端是windows的话,用putty试试。

自从FB10.0以后,有些ssh客户端不能用了。

chenxk10 发表于 2017-09-20 11:36

回复 3# lsstarboy

果然是这样,换了putty后,就可以连接上了~~谢谢

lsstarboy 发表于 2017-09-20 11:45

怀疑是有不支持的算法
页: [1]
查看完整版本: SSH连接FreeBSD按照网上大神们配置,还是连接不了,请问我还能怎么改?