I have a login banner that is displayed prior to password authentication via SSH.
This is what it currently looks like:
What I would like to do is add a line (the bottom is fine, but the option to put it anywhere would be great) that says something like the following:
I found a post about adding the IP address of the server (Thread 61798), but I'm looking to display the remote client IP address and that would obviously change every time a login attempt occurred.
I've investigated
This is what it currently looks like:
Code:
===================================================
This is a private system.
Only authorized users may access this system with their individually assigned user
accounts. Sharing of any account information with anyone is strictly prohibited and
may result in account suspension and/or termination in accordance with the
Acceptable Use Policy (AUP).
All access to this system and all traffic to and from it may be monitored and logged
by the system owner(s), operator(s), and administrator(s).
=====================================================
What I would like to do is add a line (the bottom is fine, but the option to put it anywhere would be great) that says something like the following:
Code:
Your IP address is XXX.XXX.XXX.XXX
I found a post about adding the IP address of the server (Thread 61798), but I'm looking to display the remote client IP address and that would obviously change every time a login attempt occurred.
I've investigated
gettytab
and pam_exec,
but so far, I haven't been able to get a solution working. Is this possible and if so, how can I accomplish this?