User agreement banner in SSH secure shell service -
I used to display a message to display a login banner when connecting to a remote server using SSH Looking for some help, and after that the user with the sign "yes or no" should only be asked to enter the password during SSH after entering "yes".
I know that login banners can be configured using /etc/issue.net and then after restarting / etc / ssh / sshd_config SSH. However, if I want additional SSH to accept the policy banner after displaying the banner, how do I know about it?
Thank you for your help in advance.
You can use something like this:
#! / Bin / bash cat / usr / share / agreement .txt read -p "Do you accept? (Y / n)" option if [[$ choice = y]]; So make the file /usr/share/agreement.txt with the content of your contract and make the script executable ( chmod + x ). Then edit / etc / passwd and set the command to run on the path of this script (for example, / usr /share/agreement.sh < / code>).
Comments
Post a Comment