Xshell无法通过SSH连接到FreeBSD


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

[plain]

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

[plain]

  1. PermitRootLogin yes   
  2. PasswordAuthentication yes   
  3. AllowUsers root  
试了一下,问题解决。

相关内容