免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
论坛 操作系统 BSD ssh登录
12
最近访问板块 发新帖
楼主: gamester88
打印 上一主题 下一主题

[FreeBSD] ssh登录 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2008-04-30 13:33 |只看该作者

  1. (1)vi /etc/inet.conf
  2. ssh     stream  tcp     nowait  root    /usr/sbin/sshd          sshd -i -4(去掉前面的#)

  3. (2)vi /etc/rc.conf
  4. 在最后加入sshd_enable="YES"

  5. (3)vi /etc/ssh/sshd_conf

  6. 设置如下内容
  7. IgnoreRhosts yes
  8. IgnoreUserKnownHosts yes
  9. PrintMotd yes
  10. StrictModes no
  11. RSAAuthentication yes
  12. PermitRootLogin yes
  13. PermitEmptyPasswords no
  14. PasswordAuthentication yes


  15. (4)启动ssh
  16. /ect/rc.d/sshd start 即可

复制代码

论坛徽章:
5
寅虎
日期:2015-01-20 09:16:52亥猪
日期:2015-01-21 14:43:44IT运维版块每日发帖之星
日期:2015-12-17 06:20:00每日论坛发贴之星
日期:2015-12-17 06:20:00每周论坛发贴之星
日期:2015-12-20 22:22:00
12 [报告]
发表于 2008-04-30 15:50 |只看该作者
按照傲枭兄的说法试了一下,还是不行,还有那些原因,朋友们提提,我试试。共同提高啊。

论坛徽章:
0
13 [报告]
发表于 2008-05-01 02:51 |只看该作者
vi /etc/ssh/sshd_config

找到這兩行:
#ListenAddress 0.0.0.0
#PermitRootLogin yes
把#號去掉。

然後再重啟SSH

即:
/etc/rc.d/sshd restart

[ 本帖最后由 hyzjp 于 2008-5-1 02:54 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP