FreeBSD下SSH安装配置

来源:岁月联盟 编辑:zhu 时间:2008-01-18
FreeBSD下SSH安装配置内容简介:【FreeBSD教程】 sshd的配置文件一般位于/etc/ssh/sshd_config。 终端下:#ee /etc/ssh/sshd_config --------------------------------------------- #Protocol 2,1 修改为: Protocol 2 #ListenAddress 0.0.0.0 修改为:

  【FreeBSD教程】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登陆.

图片内容