First try: PSCP – I & lt; Local storage path of private key file & gt& lt; Windows local file & gt; [email protected] :/home/jerry
Encountered error message: server reused our key
Fatal Error: No supported authentication methods available (server sent: publickey )
Take a closer look. In my putty, the host name is ubuntu@VM-0-2-ubuntu So I replaced root in the command line with Ubuntu:
After that, the error message becomes: unable to open/home/Jerry/xxx.zip: permission denied
The reason is that I created the Jerry directory through sudo command:
The LS command shows that both the owner and the owner’s group are root users, so you will encounter permission problems
Use the chown command to change the owner of the Jerry folder back to a Ubuntu user
sudo chown -R ubuntu jerry
After that, PSCP is executed successfully
More original articles by Jerry can be found in “Wang Zixi”:
Read More:
- The bash file written by windows runs in Linux system error
- Windows 10 startup item repair an operating system wasn’t found
- Windows 10 startup item repair an operating system was’t found solution
- Mac: how to show hidden files under Apple Mac operating system
- SQL Server import MDF and LDF files appear: unable to open physical file “D:\ XX.mdf “。 Operating system error 5: “5 (access denied. )”Solutions
- Openproj reported error errno = 193 in 64 bit operating system
- Windows 7 system, start to run input CMD, the window flashed by, disappeared
- Solution to prompt “system group policy forbids installation of this device” in win10 system
- Error report of xv6 operating system make Makefile:192 : * * solutions to receive comments before first target. Stop
- MySQL error: InnoDB: operating system error number 13 in a file operation
- Lenovo-win7 system computer boot prompt error 1962: no operating
- Perfect solution to raise runtimeerror (“distributed package doesn’t have nccl”) in Windows system“
- Unable to open the physical file “d:\***.mdf”. Operating system error 5: “5(Access is denied.)”.
- Go: How to Fix plug-in installation failure in vscode of windows system
- Error 1045 (28000) access denied for user ‘root’ @’localhost ‘appears in MySQL under Windows system
- There is no windows solution in dual system Ubuntu grub startup
- Root password of windows 10 WSL Ubuntu system
- error 1962:no operating system found.boot sequence will automatically repeat.
- The solution of “failed to load ldlinux. C32” in Linux system
- In IE6, “RES / C”: windows, system32, shdoclc. DLL, HTTP 403. HTM “.