How to Enable SSH on Ubuntu 20.04 lts

preview_player
Показать описание
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:

- 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

If you like the video, why not subscribe, so you won't miss future videos!
Subscribe Here:

Useful Links/Commands:
#linux #tutorial #macOS #Windows #Printer #Camera #CCNA #Graphic

Thank You For Watching and please visit my channel

Make sure to Subscribe below for Future Installs, Updates, Reviews, and Tips!!!
Рекомендации по теме
Комментарии
Автор

A lot of confusion regarding how to generate SSH from terminal since if leave with default folder it will copy both private and public key to vps in .ssh folder, so if this was intercept by a hacker he will have access to the private key.

petertremblay