Xshell无法通过ssh连接到FreeBSD

通过VMWare安装了一个FreeBSD虚拟机,想着说用XShell远程连接上去,但是总是出现下列错误:

error: PAM: authentication error for root

查了一下资料,默认情况下,FreeBSD上的sshd是不允许root通过ssh远程登录到服务器上。只需要在/etc/ssh/sshd_config文件中添加下列配置:

PermitRootLogin yes 
PasswordAuthentication yes 
AllowUsers root

试了一下,问题解决。


猜你喜欢

转载自wawlian.iteye.com/blog/1347725