need
I want to simply copy and paste files between a remote linux server and a local windows computer, and I don't want to install additional FTP service software, I don't want to specify FTP users, I don't want to write complicated FTP configurations, and at the same time, the local windows should be able to access all directories inside the Tencent Cloud server (permission root).
step
1. Download and install winscp, click here . Size 10.9M.
Be careful not to click on other advertisements. If the download does not start, click
2 at the bottom of the new page. Click to install. There will be two view options during the process. The commander view shows the windows directory on the left, and the remote linux directory on the right. The explorer view only has the linux directory. It doesn’t matter if you like it.
3. If your Tencent Cloud server has not set a root password or has forgotten it, please:
passwd root #提示权限不够就先sudo -i切换到root用户
4. Since ubuntu does not support root users to log in directly, you need to modify the following:
sudo vi /etc/ssh/sshd_config
After entering the vi mode, press i to edit, and add the following two lines (I don’t have both here, if there is any, just change it to yes anyway, or uncomment):
PermitRootLogin yes
PasswordAuthentication yes
As shown in the figure below:
After adding, press esc to exit the editing mode, and enter wq to save and exit.
5. You're done, open winscp:
fill in the public network IP address for the host name, fill in root and the password you set for the user name, and port number 22 is the default linux SSH port number.
After logging in, you can copy and paste at will, and you will not be prompted for insufficient permissions when you transfer it to the root directory: