|
|
Warning Message on ssh terminal login - Banner - Linux
|
Views : 825
|
|
Tagged in : Linux
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
We can set a warning or a company message to be displayed when ever users login to their ssh account.
For this we have to create file and save our message in that file.
Example:
#echo "This is a warning message" > /root/warning-message
Now point edit the ssh config (it may be in /etc/ssh/sshd_config) and uncomment the line with Banner in it and change it to point the waring message file
Banner /root/warning-message
save the file and restart ssh. |
|
By rajesh, On - 2009-11-07 |
|
|
|