服务器 频道

FreeBSD下SSH安装配置

  【IT168 服务器学院】sshd的配置文件一般位于/etc/ssh/sshd_config。

  终端下:#ee /etc/ssh/sshd_config

  ---------------------------------------------

  #Protocol 2,1

  修改为:

  Protocol 2

  #ListenAddress 0.0.0.0

  修改为:

  ListenAddress 0.0.0.0

  #PermitRootLogin yes

  修改为

  PermitRootLogin yes

  (Linux上默认允许root用户登录,此处可不修改。)

  修改完成后重启sshd:

  /etc/rc.d/sshd restart

  -------------------------------

  现在即可ssh登陆.

0
相关文章