linux - 登录 RHEL 时的自定义启动画面

标签 linux authentication ssh rhel

我想知道在 RHEL 服务器上登录帐户时是否可以显示启动画面?不是通过/etc/motd,因为它是全局的,而是针对特定用户的。

理想情况下,我希望在服务帐户登录时显示正常运行时间和运行的服务。

亲切的问候,

R,

最佳答案

查看 sshd_config 的手册页。有 Banner 选项,您可以为每个用户自定义它。

motd 也可以是动态的。在 ServerFault 上查看此答案:

However, it's possible to execute a shell script at login time that will have the same result. This is usually achieved by adapting the /etc/profile script that is executed each time a user logs in. A useful practice is to put the command you want to be executed in a script named /etc/motd.sh and call this script from /etc/profile, usually at about the end of it.

关于linux - 登录 RHEL 时的自定义启动画面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36649459/

相关文章:

Linux 设置更高的波特率和相关设置

php - token 在尝试刷新后被解除认证

authentication - jwt上的私有(private)和公共(public) claim 有什么区别

Xcode 6 Git 没有可用的 Remote

linux - 无密码 SSH 仅适用于 Debug模式

c++ - 在 C++ 的 Eclipse 中识别@param?

linux - 如何用hadoop打印文件树?

linux - E212 : Error Cannot open file for writing (VIM - . 启动扩展)

mysql - 避免用户在 wordpress 中更改密码

linux - 使用 NAnt 脚本的 SSH 连接