This article covers how to enable ssh on Ubuntu 20.04 LTS Linux system. In fact, the idea behind using SSH is to establish a secure connection with another computer in the network. However, the remote computer must have a running SSH server, otherwise, we won't be able to connect it using command or SSH client from our local computer.
How to Generate Public and Private Keys for SSH ?
- Open command line- Terminal or Prompt on your local system.
- Enter SSH key generator command that will generate the key ssh-keygen.
- Hit the Enter key.
- (optional) Then you can enter a password in order to add an additional barrier when establishing the connection. Otherwise, simply press the Enter key two times, if you don't want the system to ask for an additional password query.
- Ultimately, two files are created in the hidden directory ".ssh" under your user directory: "id_rsa" and "id_rsa.pub". The "rsa" in the file name stands for the cryptography used, but you don't have to worry about it. The file extension "pub" stands for "Public", so it is the public key. Whereas the file without any extension is your private key.