Answer the question
In order to leave comments, you need to log in
Where is the script that is executed on SSH login?
This is what I see when connecting to the scaleway
this to vultr:
Where are the scripts responsible for displaying this information when root is logged in? I checked the folder ~
and found nothing, /etc/ssh
nothing similar either.
Answer the question
In order to leave comments, you need to log in
Disable the message about the last login (line Last login: ...):
in the /etc/ssh/sshd_config file, change the option c yes to no in the PrintLastLog
parameter.
The rest of the text or login actions are written in the script located in the /etc/profile.d folder / , where you can, for example, create a file /etc/profile.d/login.sh (or any other, they are all processed at login) in which you can specify the path to another executable file or directly display a message:
#!/bin/sh
ehco "Оставь надежду, всяк сюда входящий"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question