To configure SSH service on Ubuntu, first install ssh-server
sudo apt install openssh-server
After the installation is complete, you can check whether the installation was successful
systemctl status ssh
vim /etc/ssh/sshd_config
At this point, ubuntu can be connected by the remote connection tool. If we want to configure the SCP service to allow the transmission of root user files, we need to modify the following configuration file
vim /etc/ssh/sshd_config
After modification, restart the ssh service to send the root user’s files.