Install and configure OpenSSH on Kali Linux

SSH is an acronym that means Secure Shell and provides access a remote machine. This allows users to connect to a local and remote computer.

SSH also refers to the suite of utilities that implement the cryptogr1aphic network protocol. We can install SSH on any Unix / Linux machine with the help of OpenSSH.

Without a doubt, SSH always provides a strong authentication and encrypts all between two systems, but there are many methods through which we can easily crack the code SSH which we will discuss in a future article.

The first step is to install the OpenSSH server on a Kali Linux computer by typing the following command.

Mandate: apt-get install openssh-server

Τώρα για να ελέγξετε την κατάσταση της υπηρεσίας SSH, μπορείτε να την ελέγξετε δίνοντας την εντολή "service ssh status" στο τερματικό σας.

Και για να ξεκινήσετε την υπηρεσία ssh στο μηχάνημά σας, πληκτρολογήστε την εντολή "service ssh start".

Τώρα το επόμενο βήμα είναι να ρυθμίσετε το SSH ώστε να λειτουργεί συνεχώς και γι 'αυτό θα πρέπει να καταργήσουμε τα run levels για SSH πληκτρολογώντας τις παρακάτω εντολές:

Mandate: update-rc.d -f ssh
Mandate: update-rc.d -f ssh defaults

The next step is to get the backup of the original SSH keys. You can skip this step, but it is important if you are reconfiguring the OpenSSH package.

To get backups of SSH keys, just create a directory inside /etc/ssh and enter the following command.

Mandate: mv ssh_host_ * backup /

Τώρα για τη δημιουργία νέων κλειδιών, απλώς πληκτρολογήστε την εντολή " dpkg-reconfigure openssh-server ".

By default, the root connection for Kali Linux in ssh is disabled, and to enable it, simply open / Etc / ssh / sshd_config with any editor you like and edit the file according to the screenshot below.

Με την τιμή PermitRootLogin στο "yes", θα ενεργοποιήσει τη σύνδεση root για τον διακομιστή SSH. Αλλά για λόγους ασφαλείας, προσπαθήστε πάντα να προσθέσετε έναν μη προνομιούχο χρήστη στο ssh.

Αφού πραγματοποιήσετε όλα τα παραπάνω βήματα, απλώς επανεκκινήστε την υπηρεσία SSH πληκτρολογώντας "sudo service ssh " και κάντε την υπηρεσία ssh να ξεκινά μόνη της σε κάθε επανεκκίνηση πληκτρολογώντας "update-rc.d -f ssh enabled 2 3 4 5".

To make sure that the safe shell starts after restarting, use the systemctl command to enable it:

Mandate: systemctl enabled ssh

iGuRu.gr The Best Technology Site in Greecefgns

every publication, directly to your inbox

Join the 2.087 registrants.

Written by Anastasis Vasileiadis

Translations are like women. When they are beautiful they are not faithful and when they are faithful they are not beautiful.

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).