Chinaunix首页 | 论坛 | 博客
  • 博客访问: 273264
  • 博文数量: 87
  • 博客积分: 4061
  • 博客等级: 上校
  • 技术积分: 1032
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-12 16:28
文章分类

全部博文(87)

文章存档

2012年(1)

2009年(85)

2008年(1)

我的朋友

分类: BSD

2009-01-20 14:53:10

首先vi编辑/etc/inetd.conf,去掉ssh前的#,保存退出
编辑/etc/rc.conf
最后加入:sshd_enable="yes"即可
激活sshd服务:
techo#/etc/rc.d/sshd start
用下面命令检查服务是否启动,在22端口应该有监听。
#netstat -an ## check port number 22
最后
vi /etc/ssh/sshd_config,
希望用putty采用ssh方式登录FreeBSD,设置说明/etc/ssh/sshd_conf:
1.支持使用口令认证

# Change to yes to enable built-in password authentication.

PasswordAuthentication yes
PermitEmptyPasswords no 不允许空密码登录


2.允许以Root身份远程登录

PermitRootLogin yes


3.避免提示后长期等待
login as: root
Using keyboard-interactive authentication.
Password:

UseDNS no

 
修改完成后重启sshd
#killall -HUP sshd
 
阅读(783) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~