Skip to content

Simple script for create ssh users and manage usage.

License

Notifications You must be signed in to change notification settings

momalekiii/sshmaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

User Management Script

This script is designed to create a user with limited SSH access, set an expiration date, and optionally limit the user's network traffic.

فارسی🇮🇷

Features

  • Creates a user with limited SSH access.
  • Sets an expiration date for the user.
  • Optionally limits the user's network traffic.

Usage

  1. Clone the repository:

    git clone https://github.com/momalekiii/sshmaker.git
  2. Navigate to the script directory:

    cd sshmaker
  3. 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).

Example

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 ⭐️

About

Simple script for create ssh users and manage usage.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages