Home Linux Ubuntu 20.04 installed? Learn how to install and configure SSH

bannerebay

Ubuntu 20.04 installed? Learn how to install and configure SSH

by ace
Ubuntu 20.04 installed? Learn how to install and configure SSH

Those who use Linux systems, such as Ubuntu, know that it is very easy to remotely access another machine. One of the most well-known and most commonly used protocols is SSH. This protocol is extremely versatile and can be installed and configured quickly.

Following the articles on Ubuntu 20.04, today we will show you how to configure the SSH protocol.

OpenSSH is a set of tools that allows us to remotely manage machines using the SSH protocol. Unlike other tools such as Telnet, rcp, rlogin, and ftp, OpenSSH ensures that communications between machines are secure because it uses encryption to encrypt all traffic (including passwords).

OpenSSH is a free version of the SSH implementation. For those who do not know, SSH – Secure Socket Shell is a protocol that allows, in a safe way, remotely access and manage Linux machines and beyond.

OpenSSH is a set of tools that are part of:

  • ssh – a substitute for rlogin, rsh and telnet.
  • SCP – a substitute for CPR
  • sftp – a replacement for ftp
  • sshd– daemon of the server version of SSH
  • ssh-keygen– a tool to check and generate RSA, DSA and Elliptic Curve keys
  • ssh-agent ssh-add – utilities so the user does not always need to enter the password – see here

How to install and configure SSH in Ubuntu?

Installing SSH on Ubuntu is something relatively simple. To do this, simply open the terminal and enter the following command:

Ubuntu 20.04 installed? Learn how to install and configure SSH

Next we will start the service. To do so, use the following command.

systemctl enable sudo –now ssh

Ubuntu 20.04 installed? Learn how to install and configure SSH

To finalize, check the status of the service

sudo systemctl status ssh

Ubuntu 20.04 installed? Learn how to install and configure SSH

Don’t forget to open logical port 22 on the firewall. Such a configuration is done with the following command:

And it’s done! As you have seen the setup is simple and fast. To connect to a machine with SSH they can use tools such as Putty or WinSCP, or via terminal, with the ssh command utilizador@endereco_ip.

Read it too…

banneraliexp

Related Articles

Leave a Comment

thirteen − thirteen =

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More