This script is designed to create a user with limited SSH access, set an expiration date, and optionally limit the user's network traffic.
- Creates a user with limited SSH access.
- Sets an expiration date for the user.
- Optionally limits the user's network traffic.
-
Clone the repository:
git clone https://github.com/momalekiii/sshmaker.git
-
Navigate to the script directory:
cd sshmaker
-
Run the script with the necessary arguments:
sudo bash create_user.sh <username> <expire_date> <download_limit_kbps> <upload_limit_kbps>
Replace the placeholders with the actual values.
<username>
: Desired username for the new user.<expire_date>
: Expiration date for the user in YYYY-MM-DD format.<download_limit_kbps>
: Download limit for the user in kilobits per second (kbps).<upload_limit_kbps>
: Upload limit for the user in kilobits per second (kbps).
sudo bash create_user.sh john.doe 2023-12-31 1024 512
This will create a user named "john.doe" with an expiration date of December 31, 2023, and set the download limit to 1024 kbps and upload limit to 512 kbps.
If You use the script and worked for you, support the script with giving it ⭐️