`

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

试了一下,问题解决。


0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics