Somik's Home

Server admins cheat codes

This is a very bad idea for servers on open internet. Only recommended for servers on local network that are behind firewall and SSH is not accessible from internet. To be used for testing only.

First install openssh server if not installed along with nano editor

sudo nano apt update
sudo nano apt upgrade
sudo apt install openssh-server nano

Change or set root user password

sudo passwd

Edit the ssh config file:

sudo nano /etc/ssh/sshd_config

Find the line that says:

#PermitRootLogin prohibit-password

And change it to:

PermitRootLogin yes

Save and exit using Ctrl+x followed by Y and then press Enter

Finally enable SSH during boot and restart it:

systemctl enable ssh
systemctl restart ssh

You can check the IP address of the server by running the command:

ip addr

© Beli. All Rights Reserved.