Install SSH on Ubuntu and Enable SSH

Започео admin, Феб 2022 08:48:59

« претходна тема - следећа тема »

admin

Install OpenSSH Server on Ubuntu

sudo apt-get update
sudo apt-get install openssh-server

Start SSH Server

sudo systemctl start ssh.service
sudo systemctl enable ssh.service

or

sudo service ssh start

Enable SSH root login

sudo nano /etc/ssh/sshd_config

Locate the line PermitRootLogin directive, uncomment (remove the # in front) and change its value to yes.
Save the SSH Configuration file and restart the SSH Server.

sudo systemctl restart ssh.service
or
sudo service ssh restart