###安装ssh

1
yum install -y openssl openssh-server

###创建新用户

1
2
adduser [用户名]    #创建新用户
passwd [用户名] #初始化密码

###未分类

#ssh日志
less /var/log/secure | grep 'Accepted'
who /var/log/wtmp
whoo           #在线用户

#查看端口占用
lsof -i:80
netstat -a      #ubuntu查看
netstat -ap     #查看所有服务端口