ssh problem
Hi,
Can it be possible to display some messages whenever any user ssh to my computer?? i mean like in redhat linux there is issue.net. so is there any thing for ssh connections also? Other problem is how can i record users sshing to me in any log file? |
Quote:
|
In /etc/ssh/sshd_config:
PrintMotd yes |
hi haertig,
I search whole system but unable to find any auth.log on my RHEL system. my ls /var/log output is Quote:
|
Hi RHELL,
I did In /etc/ssh/sshd_config: PrintMotd yes but that only displays Last Login information. how can my message must be displayed whenever anyone ssh to me?? and where can i add that message? |
Quote:
Code:
auth,authpriv.* /var/log/auth.log You could also just grep in /var/log and try to brute force find the correct logfile. Try: Code:
# grep ssh /var/log/*log |
You may also have ssh messages logged into some subdirectory under /var/log. For example, my samba messages are logged into /var/log/samba/log.* You'll just have to manually snoop around a little to find what you're looking for. I'm not familiar with the default logging structure of RHEL.
|
Thanks all
i got the file under /var/log/secure but what abt message to display for users connecting thru' ssh to me? |
Try putting some text in /etc/motd. This should be displayed each time you login.
|
All times are GMT -5. The time now is 11:50 AM. |