Skip to content

cybersecurity-dev/Bash-Toolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bash Toolkit | Your Swiss Army Knife for the Command Line

open-source

Install SSH server

Debian based

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

Fedora based

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

OpenSUSE based

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.

Releases

No releases published

Packages

No packages published

Languages