Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1585439
  • 博文数量: 104
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 4631
  • 用 户 组: 普通用户
  • 注册时间: 2013-09-11 10:57
个人简介

欢迎关注:https://zhangdd.com

文章分类

全部博文(104)

文章存档

2018年(9)

2016年(4)

2015年(23)

2014年(54)

2013年(14)

分类: 系统运维

2013-09-11 11:23:25

FreeBSD SSH配置详解
默认情况下freebsd下的ssh服务是未被开启的
需要
首先vi编辑/etc/inetd.conf,去掉ssh前的#,保存退出 (开启****ssh服务)

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

PermitRootLogin yes #允许root登录
PermitEmptyPasswords no #不允许空密码登录
PasswordAuthentication yes # 设置是否使用口令验证。
就可以了


最后编辑/etc/rc.conf
最后加入:sshd_enable="YES"即可   //"YES"一定要记得大写
激活sshd服务:
/etc/rc.d/sshd start

到此配置基本完成 看下ssh的22端口是否开启了
netstat -an |grep 22
或者是
ps -aux |grep ssh
出现
root         813   /usr/sbin/sshd
root         979   sshd: (sshd)
ok,配置成功可以远程连接了

如需转载,请标明出处,谢谢。 http://blog.chinaunix.net/uid-29179844-id-3895509.html

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