使用root登陆系统,使用命令创建用户.
#useradd test
#passwd test
Changing password for user test.
New UNIX password:
Retype new UNIX password:
然后退出,使用新的用户test登陆,输入密码之后,登陆不了.
不知道是什么原因??
...全文
126015打赏收藏
linux上创建用户后,登陆不行
使用root登陆系统,使用命令创建用户. #useradd test #passwd test Changing password for user test. New UNIX password: Retype new UNIX password: 然后退出,使用新的用户test登陆,输入密码之后,登陆不了. 不知道是什么原因??
# be allowed through the ChallengeResponseAuthentication mechanism.
# Depending on your PAM configuration, this may bypass the setting of
# PasswordAuthentication, PermitEmptyPasswords, and
# "PermitRootLogin without-password". If you just want the PAM account and
# session checks to run without PAM authentication, then enable this but set
# ChallengeResponseAuthentication=no
#UsePAM no
UsePAM yes
#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding no
#X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation yes
#PermitUserEnvironment no
#Compression yes
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10
#ShowPatchLevel no
# no default banner path
#Banner /some/path
# override default of no subsystems
Subsystem sftp /usr/libexec/openssh/sftp-server
ReverseMappingCheck yes
GatewayPorts no
AllowTcpForwarding yes
KeepAlive yes
Protocol 2
AllowUsers root test #####在这儿
LoginGraceTime 60
UsePrivilegeSeparation yes
MaxStartups 3