【Linux】Ubuntu 关闭登陆后login last : 提示


修改/etc/sshd/sshd_config 文件 找到如下内容:

#PrintLastLog yes
去掉注释,yes改为no

再执行systemctl restart sshd