设置Linux用户可以ssh登录
用root进入
su root
#then 
vi /etc/ssh/sshd_config
# 写入(daxiong是原有的用户)
AllowUsers daxiong xiaoli
# 保存
/usr/sbin/sshd -T
#没错后
service sshd restart

评论 (0)