Skip to content

cybersecurity-dev/Bash-Toolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bash Toolkit | Your Swiss Army Knife for the Command Line

YouTube Reddit Linux

GitHub   YouTube   My Awesome Lists

Install SSH server

  • Debian

    sudo apt-get install -y openssh-server && sudo systemctl enable ssh --now
  • Fedora

    sudo dnf install -y openssh-server && sudo systemctl enable sshd --now
  • openSUSE

    sudo zypper install --no-confirm openssh && sudo systemctl enable sshd --now
  • Add Firewall Rure

    sudo firewall-cmd --permanent --add-service=ssh && sudo firewall-cmd --reload

Verify that ssh service running

sudo systemctl status ssh

Generate ssh-key

ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/user/.ssh/id_rsa):
Created directory '/home/user/.ssh'.
Enter passphrase (empty for no passphrase):

After that you will see public key :

Your public key has been saved in /home/user/.ssh/id_rsa.pub
The key fingerprint is: ...

copy fingerprint and paste into:

vim /home/user_remote/.ssh/authorized_keys

or copy and install the public key using ssh-copy-id command in Linux

ssh-copy-id user_remote@user_remote_ip

and than you will connect via ssh without password but if you entered passphrase, system will ask you this.

Install Applications

Programming Language

C C++

  • Debian
    • LLVM
      sudo apt-get update && sudo apt-get install -y clang && clang version 
    • GCC
      sudo apt-get update && sudo apt-get install -y build-essential && g++ version 
  • Fedora
    • LLVM
    sudo dnf upgrade --refresh && sudo dnf install -y clang && clang version
  • openSUSE
    sudo zypper refresh && sudo zypper install -y clang && clang version

Go

  • Debian
    sudo apt-get update && sudo apt-get install -y golang && go version 
  • Fedora
    sudo dnf upgrade --refresh && sudo dnf install -y go && go version
  • openSUSE
    sudo zypper refresh && sudo zypper install -y go && go version

Python

  • Debian
    sudo apt-get update && sudo apt-get install -y -y python3 python3-pip python3-devel && pip3 --version && pip3 install --upgrade pip && pip3 --version
  • Fedora
    sudo dnf upgrade --refresh && sudo dnf install -y python3 python3-pip python3-devel && pip3 --version && pip3 install --upgrade pip && pip3 --version
  • openSUSE
    sudo zypper refresh && sudo zypper install -y python3 python3-pip python3-devel && pip3 --version

Rust

  • Debian
    sudo apt-get update && sudo apt-get install -y rustc && rustc -V 
  • Fedora
    sudo dnf upgrade --refresh && sudo dnf install -y rustc && rustc -V
  • openSUSE
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh && rustc -V
  • Windows Subsystem for Linux
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh && rustc -V

Solidity

  • Debian
    sudo add-apt-repository ppa:ethereum/Ethereum
    sudo apt-get update && sudo apt-get install -y solc && solc --version
  • Fedora
    sudo snap install solc &&  && solc --version
  • openSUSE
    sudo snap install solc && solc --version