Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1344562
  • 博文数量: 145
  • 博客积分: 1440
  • 博客等级: 少尉
  • 技术积分: 2986
  • 用 户 组: 普通用户
  • 注册时间: 2012-07-24 23:47
个人简介

我一直在走,至少还有条路,也好于无路可走…

文章分类

全部博文(145)

文章存档

2023年(1)

2017年(2)

2016年(5)

2015年(13)

2014年(13)

2013年(70)

2012年(41)

分类: BSD

2013-07-27 17:10:54

                                 freebsd可以用sshd权限用户登录ssh 但不能用root用户登录的方法
1.在/etc/ssh/sshd_config最后中加入 
ee /etc/ssh/sshd_config

                       PermitRootLogin yes #允许root登录
                       PermitEmptyPasswords no #不允许空密码登录
                       PasswordAuthentication yes # 设置是否使用口令验证。
2.编辑/etc/inetd.conf,去掉ssh前的#
ee  /etc/inetd.conf


3.编辑 ee /etc/rc.conf
最后加入:sshd_enable="yes"即可 
激活sshd服务:
4./etc/rc.d/sshd restart
查看ssh进程:  netstat -an 

5.测试:








阅读(6349) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~