How to Enable SSH on Ubuntu 20.04 - openssh

145 Aufrufe
Published
How to Enable SSH on Ubuntu 20.04 - openssh
- Secure Shell (SSH) is a network protocol used for a secure connection between a client and a server. Each interaction between the server and a client is encrypted.
- This tutorial explains how to enable SSH on an Ubuntu machine.
- Enabling SSH will allow you to connect to your system remotely and perform administrative tasks. You’ll also be able to securely transfer files via scp and sftp .

** Enabling SSH on Ubuntu
- By default, when Ubuntu is first installed, remote access via SSH is not allowed. Enabling SSH on Ubuntu is fairly straightforward.
- Perform the following steps as root or user with sudo privileges to install and enable SSH on your Ubuntu system:

1. Open the terminal with Ctrl+Alt+T and install the openssh-server package:
$ sudo apt update
$ sudo apt install openssh-server
When prompted, enter your password and press Enter to continue with the installation.

2. Once the installation is complete, the SSH service will start automatically. You can verify that SSH is running by typing:
$ sudo systemctl status ssh

3. Ubuntu ships with a firewall configuration tool called UFW. If the firewall is enabled on your system, make sure to open the SSH port:
$ sudo ufw allow ssh

That’s it! You can now connect to your Ubuntu system via SSH from any remote machine. Linux and macOS systems have SSH clients installed by default. To connect from a Windows machine, use an SSH client such as PuTTY .

** Connecting to the SSH Server
- To connect to your Ubuntu machine over LAN invoke the ssh command followed by the username and the IP address in the following format:
$ ssh username@ip_address

- If you don’t know your IP address you can easily find it using the ip command :
$ ip a

** Disabling SSH on Ubuntu
- To disable the SSH server on your Ubuntu system, simply stop the SSH service by running:
$ sudo systemctl disable --now ssh

- Later, to re-enable it, type:
$ sudo systemctl enable --now ssh
_______SUBSCRIBE TO THIS HTU CHANNEL!_______

If you like the video, why not subscribe, so you won't miss future videos!
Subscribe Here: https://www.youtube.com/channel/UCwxMCQV019yan9qL3BgyT3g?sub_confirmation=1

*** Learn more about Tuts ***
How to install Ubuntu Server 20.04 LTS - https://youtu.be/x4Nf2fTA22k
Connect to a Windows PC from Ubuntu 20.04 using Remote Desktop Connection ( Remmina ) https://youtu.be/vlkmPw1wUSA
How to Install CentOS 8 Core - https://youtu.be/NeQqFBYTbsA
How To Install CentOS 7 Core https://youtu.be/47Lx1-CnBAM
____________________________________________

Kategorien
PC (Windows/Mac/Linux) Anleitungen
Kommentare deaktiviert.