By default, it is not possible to connect to ssh with root. We want to modify some system files. We have to put it in / tmp to download and move it with mv. It is okay twice or once. Directly switch to root to execute various commands.
Well, here we can modify any file directly after logging in with Winscp, instead of logging in with root, the default WinSCP site you add is like this.
Now click Edit and click the Advanced button.
It's like this after opening.
Click, Environment-"SFTP
Fill in the SFTP server as shown
sudo /usr/lib/openssh/sftp-server
Then click the environment-"shell
Write in the shell field
sudo -i
Click OK. Although you are using your custom name after logging in, you are already rooted and can operate any file.