#stayinandexploreitkb #linux #nmam #openssh #sshserver #sshsecurity #linuxsecurity #linuxuser #ssh #informationtechnology #blueteam #redteam #oscp #blackhat #pentester #pentesting #cybersecurity #hacker #tool #redteaming #bugbountytips #bugbounty#sshtips #sshorts #sshd #linuxserver #secureshell #linux #linux_tutorial #fail2ban #iptables #linuxinhindi #linuxnetwork #linuxadministrator #linuxadmin #linuxadministration #linuxkernel #linuxforbeginners #security #hosting #vps #vpsserver #vpssecurities #bestpractice #bestvideo
In this lecture, we will talk about, Secure Shell Protocol “also known as” SSH, which is a cryptographic network communication protocol that permits secure communication and data exchange between two devices over an unsecured network.
The Secure Shell (SSH) is still the de facto way of connecting to remote Linux servers and various network devices. Rather than losing importance, its uses have increased with the greater reliance on automation technologies such as Ansible, cPanel/WHM, Kubernetes, docker containerization, etc.
Suppose your development team stands up a new webserver in their test environment and neglects to open ports 80 and 443 in the server's firewall. The team contacts you, asking you to troubleshoot the problem. You could use SSH to remote into the webserver. You make the connection, enter the password when prompted, and complete the firewall configuration. It's quick, easy, and secure.
But the question arises here, is there a much safer and most secure way to connect to your Linux boxes with the highest encryption possible without typing your secret password into your SSH server?
This video lecture covers implementing and using key-based authentication to support easier SSH authentication and improved automation. SSH authentication methods are likely topics for CompTIA Linux+ and CompTIA Security+ exams.
Use the video lecture with two or more Linux-based virtual machines in your home lab. Another good way to familiarize yourself with key-based authentication is to use it when connecting to a Raspberry Pi computer. These devices are a great way to get started with Linux.
Before we jump into our main focused area, we must have to ensure basic prerequisites should be formed, for example, you should verify, your Linux system is updated & upgraded for bug fixes, and SSH service is primarily installed in your Linux server with an auto-start service upon every reboot.
in this demo, I am using the latest “Ubuntu server 22.10” which is hosting our corporate web server, and here I would like to install the “OpenSSH-Server” service for remote administration and ongoing server maintenance in the near future.
Along with that, I have another “Ubuntu desktop 22.04” Linux box as an SSH client for testing and validation purposes.
Download Ubuntu Server
https://ubuntu.com/download/server
OpenSSH
https://www.openssh.com/
Ubuntu Server - Prerequisites
Update & upgrade your Linux box
Install OpenSSH-Service
Auto-start SSH service
LAB
Ubuntu Server 22.10 (Web Server, OpenSSH)
Ubuntu Desktop 22.04 (SSH Client)
Command used in this Video lecture
System Update & Upgrade
$ sudo apt update && sudo apt upgrade -y
Install OpenSSH
$ sudo apt install openssh-server -y
Enable OpenSSH AutoStart after you reboot
$ sudo systemctl enable --now ssh -y
Evaluate OpenSSH Status
$ sudo systemctl status ssh -y
Subscribe to our Channel
/ @itkb