HOME > Linux > Ubuntu: Enable Ssh - How It Works

Ubuntu: Enable SSH - how it works

If you have installed Ubuntu on your computer as an operating system and want to connect to it via SSH, you must first enable the network protocol. Read here how this works directly during the installation and how to make further settings.

How to install SSH on Ubuntu

SSH is short for Secure Shell and refers to a network protocol that allows you to establish an encrypted connection to a server over the Internet. To enable the SSH protocol on Ubuntu, you must first install it.
  1. To do this, please start your computer's terminal by pressing the key combination of "Ctrl" + "Alt" + "T" on your keyboard.
  2. In the terminal, then enter the following command and confirm its entry with the Enter key: "sudo apt-get install openssh-server".
  3. SSH is downloaded by executing the command from the Ubuntu server and automatically installed and activated on the PC.
  4. To check if SSH is really enabled on your machine, enter the command "sudo service ssh status" in the terminal and look for the line "Active: active (running).

To adjust the settings of the enabled SSH

Have you installed and enabled SSH on Ubuntu, it may be necessary, depending on the planned use, in a next step to adjust the settings of the protocol. If you want to use SSH to connect your Ubuntu PC to a server, please call the settings with the command "sudo nano /etc/ssh/sshd_config" and specify your host, port and username. Then restart SSH with the command "sudo service ssh restart" to apply all changes.

By Antonie Hediger

The Evil Within 2: Tips - how to get started :: Windows 10: Free up memory - how to do it
USEFUL LINKS