KTFCC
Aug 21 2005, 12:33 AM
I like to give pepole a warning when they sucessfuly log in to ssh
Here is how you do it
First off login to our server as root. Then type in the following:
vi /etc/motd
Now type in the security login message you wish all users to see once they login to your server through SSH.
Try something like this as a start:
This computer system is for authorized users only. All activity is logged and regulary checked by systems personal. Individuals using this system without authority or in excess of their authority are subject to having all their services revoked. Any illegal services run by user or attempts to take down this server or its services will be reported to local law enforcement, and said user will be punished to the full extent of the law. Anyone using this system consents to these terms.
esc shift+z+z
JustGags
Aug 21 2005, 09:50 PM
A warning like that may be better presented before the user successfully logs in. That's my take on it anyway.
klaude
Aug 21 2005, 11:41 PM
You can edit /etc/issue to make a pre-login warning if you like.
KTFCC
Aug 22 2005, 04:02 AM
Be shure if you do that to edit the banner.
in sshd_config
Banner /etc/issue
This is what it looks like on my server
login as:
*****************WARNING******************************
This computer system is for authorized users only.
All activity is logged and regulary checked by systems personal.
Individuals using this system without authority or in excess of their authority are subject to having all their services revoked.
Any illegal services run by user or attempts to take down this server or its services will be reported to local law enforcement, and said user will be punished to the full extent of the law.
Anyone using this system consents to these terms.
*******@***.***.***.***'s password:
ACCESS GRANTED!
Welcome To the Vitural Optix Server
#
knalb
Aug 24 2005, 01:28 AM
or even better, you could require port knocking for ssh, and THEN have a banner.. WOO!
KTFCC
Aug 24 2005, 02:35 AM
So much fun you can do with ssh I also edited my FTP banner can not get rid of the fact it says Pure FTP though
knalb
Sep 1 2005, 12:13 AM
QUOTE (KTFCC)
So much fun you can do with ssh I also edited my FTP banner can not get rid of the fact it says Pure FTP though

sure you can, just rebuild it from source.. and edit all the references in the source to change it from pureftp to FTPSERVERONBOXNOWGOAWAY.. or you know, something like that
KTFCC
Sep 1 2005, 02:05 AM
Hum perhaps sometime when i have time i will do that.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.