Linux Config

How to install ssh in Linux

Install Ssh

1. sudo apt install openssh-server openssh-client

2. sudo systemctl enable ssh

3. sudo systemctl status ssh

Make a backup of your server’s sshd_config file.

sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.BACKUP

Enable root login over SSH

sudo nano /etc/ssh/sshd_config

Add the following line to the file, you can add it anywhere but it’s good practice to find the block about authentication and add it there.

PermitRootLogin yes

Save and exit the file.

Restart the SSH server:

systemctl restart sshd

A ramp along a curved wall in the Kiasma Museu, Helsinki, Finland