创建无ssh权限的用户

new:
useradd --home /dev/null --shell /sbin/nologin --no-create-home user001
esixt:
chsh -s /sbin/nologin user001

new:
useradd --home /dev/null --shell /sbin/nologin --no-create-home user001
esixt:
chsh -s /sbin/nologin user001