Linux local files are uploaded to the server
SCP/home/liujia/file. TXT [email protected]:1/user/liujia
Download the file from the server
[email protected]:/user/liujia/file1. TXT/home/liujia
The command
SCP [email protected]:/user/liujia// home/liujia
Cp not a regular file
The reason is that this is the equivalent of downloading folders, not files.
The solution is to add the parameter -r
SCP – r [email protected]:/user/liujia// home/liujia font>
That’s it
Read More:
- Linux remote copy command and not a regular file solution
- FTP prompt in Linux — 553 could not create file (absolutely useful)
- TFTP: server says: file not found solution
- How to solve the problem of Cannot find module’npmlog’ when installing nodejs under Linux
- Solution of visdom enabling problem
- “Permission denied” error in Oracle10g installation
- Solve the problem that the header file of “graphics. H” cannot be loaded in vs2015
- “Failed to find entry for user…” appears when Linux uses samba
- Samba error: session setup failed: NT_ STATUS_ LOGON_ FAILURE
- Flume monitors a single append file in real time
- fatal error: Python.h: No such file or directory compilation terminated.
- Error loading in flex integration: Java / jdk1.6.0_ 35\jre\bin\server\ jvm.dll
- You must be logged in to the server (unauthorized)
- Mac realizes file interaction (upload and download) between terminal and server
- Solve the problem of syntax error: unexpected end of file or syntax error near unexpected token ` fi ‘error
- Sync Error: some files/attrs were not transferred (see previous errors) (code 23) at main
- ExecutableNotFound: failed to execute [‘dot’, ‘-Tsvg’], make sure the Graphviz executables are on yo
- Busybox encountered input/output error while mounting NFS to TMP file system
- Ubuntu 20.04 builds nginx 1.18.0 and MAC file transfer / download to server
- An idea to solve Warning move_uploaded_file, failed to open stream in the process of php uploading files