GithubHelp home page GithubHelp logo

dgallop / 42-born2beroot Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4 KB

Project made for 42madrid

Shell 100.00%
42 42barcelona 42born 42born2code 42cursus 42madrid 42projects 42school 42born2beroot ssh

42-born2beroot's Introduction

Born2beroot

For this project I used Debian with VM virtualbox I have to configure SSH service with specifics configurations

SSH

To install SSH

sudo apt install openssh-server

To check STATUS, START or STOP the service it needs to be run:

sudo systemctl status/start/stop ssh

To modify the port and the root login of the protocol just edit this file and its lines

/etc/ssh/sshd_config
  Port 4242
  PermitRootLogin no

UFW

sudo apt install ufw
sudo ufw enable
sudo ufw allow 4242

To delete a rule, check the status numbered and delete the ones you want

sudo ufw status numbered
sudo ufw delete Number

PASSWORD

Edit this file to change the expiration of the password, the minimun days til change and days for warnning

/etc/login.defs
PASS_MAX_DAYS Number
PASS_MIN_DAYS Number
PASS_WARN_AGE Number

To maintain the strenght of the user's password.

sudo apt install libpam-pwquality
/etc/pam.d/common-password
  password requisite pam_cracklib.so retry=3 minlen=10 ucredit=-1 dcredit=-1 maxrepeat=3 reject_username enforce_for_root difok=7

CRONTAB

Executes monitoring.sh

sudo crontab -u root -e
*/min * * * * bash file.sh

My final score:

42-born2beroot's People

Contributors

dgallop avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.