ssh连接时报错 This account is currently not available

一、报错描述

远程ssh连接服务器的时候报错:This account is currently not available

二、解决方法

配置文件中/etc/passwd,该用户名shell禁止登录导致

  1. 查看用户信息: cat /etc/passwd | grep 用户名

  2. 发现它的shell是"/sbin /nologin",需要将起改成"/bin/bash"

  3. 修改完毕后,保存退出