**这是本文档旧的修订版!**
<markdown>
Ubuntu 14.04 服务器搭建最简 check list
1、使用 root 用户 ssh 登录
2、创建新用户,并给其 sudo
权限
adduser newbie gpasswd -a newbie sudo
3、切换到新用户,并配置 ssh key
su - newbie mkdir .ssh chmod 700 .ssh vi .ssh/authorized_keys # paste your key chmod 600 .ssh/authorized_keys
4、修改 sshdconfig
vi /etc/ssh/sshd_config
service ssh restart
Port 4917 # change ssh port(optinal)
AllowUsers newbie # restrict root login
#### Refs
- Server Hacks New Ubuntu 14.04 Server Checklist
</markdown>