凌动小生的Blog

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

minimal installtion has installed ssh.

We must config it befort use it.

key words

1. ee /etc/ssh/sshd_config

add these rows:

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

2.ee /etc/inetd.conf 去掉ssh前的#(两个),保存退出 (开启****ssh服务)

--------refer to  FreeBSD releaning (three)-inted

3.ee  /etc/rc.conf
最后加入:sshd_enable="yes"即可 
激活sshd服务:
#/etc/rc.d/sshd start  optional:/etc/rc.d/sshd reload /etc/rc.d/sshd restart

#netstat -an 

port 端口已经在Listen

下载putty,进行ssh 登陆。

#ee /var/log/auth.log 记录登陆用户的信息

posted on 2012-07-27 22:19  凌动小生  阅读(163)  评论(0编辑  收藏  举报