系统不常装,但装起来却很麻烦,以下是为了好记忆而写
一 安装系统
以fedora6为例
要选上开发工具和开发库,为了是以后可以使用编译来安装软件
Development Tools
Development Library
二 装好系统
1 添加非Root用户,并设置密码,系统默认没有密码无法登陆
# useradd wxw
# passwd wxw
2 提升权限
# vim /etc/sudoers
输入以下
wxw ALL=(ALL) NOPASSWD: ALL
3 设置密钥方式登陆
3.1 输入公钥
# cd /home/wxw/
# mkdir .ssh
# vim .ssh/authorized_keys
# chmod 700 .ssh/ -R
# chown wxw.wxw .ssh/ -R
3.2 设置密钥方式
# vim /etc/ssh/sshd_config
去掉下面三项注释
#RSAAuthentication yes
#PubkeyAuthentication yes
#AuthorizedKeysFile .ssh/authorized_keys
允许密码验证和Root用户登陆都改成no
PasswordAuthentication yes
#PermitRootLogin yes
3.3 重启sshd服务
# /etc/init.d/sshd restart