Home > OS >  SCP upload local Windows file error "system could not find the file specified."
SCP upload local Windows file error "system could not find the file specified."

Time:09-26

Only recently discovered win10 has integrated the OpenSSH client and server,
In themselves and their colleagues computers (both for win10) are installed on the client and server,
Want to colleagues from your computer to upload the file to the computer,

Steps:
Login colleagues first computer: 123 @192.168.1.42 SSH password login successful
Upload the SCP c: \ test. TXT d: \

An error is: the system cannot find the specified file

If you don't log in directly using the command:
SCP c: \ test. TXT 123 @192.168.1.42: d: \
Enter the password after, still report the same error

O teach

CodePudding user response:

The user write access to the no

CodePudding user response:

User 123 types of accounts for the administrator should have no jurisdiction question
Feeling is a path path writing problems

CodePudding user response:

Find the problem reason:
The first use of SCP file transfer, CMD must run as an administrator
Second must clear without path of the path of the IP address is local or remote

Assumptions:
According to the local computer to A, B said remote computer
AddrA said A address, addrB said B address
A for the local computer accounts, aa said password
B the remote computer accounts, bb said password

Goal:
The test will be A computer disk C. TXT transfer to B D tray

Operation:
On A computer, run the following command

Case 1:
If no SSH login first B
Command should be as follows: SCP c: \ test. TXT b @ addrB: d: \
Then enter the password bb

Situation 2:
If you already have the SSH login B
Command should be as follows: SCP a @ addrA: c: \ test. TXT d: \
Then enter the password aa



  • Related