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
Install GUI in ubuntu server
sudo apt update && sudo apt upgrade -y
sudo apt install ubuntu-desktop -y
sudo systemctl set-default graphical.target
sudo reboot
Disable Printer Auto Dicsovery
1. sudo systemctl stop cups-browsed
2. sudo systemctl disable cups-browsed
If you want to completely remove printing capabilities, you can uninstall CUPS:
1. sudo apt remove –purge cups cups-browsed
