Notice that minus P capital
The instance
1. Get files or folders from a remote server
scp -r -P Port number Login name @ip address:Remote folder path Local folder path
2. Put the file on the remote server
For example, upload the test directory under the current directory to the server’s /var/www. directory
scp -r test [email protected]:/var/www/
Read More:
- scp Command: Unable to negotiate with xxx.xx.xx.xx port 22: no matching cipher found.
- [Solved] Linux scp Error: Host key verification failed.
- SCP path contains special characters Error [How to Solve]
- Linux gets the program PID according to the port
- Linux Traceroute Command Examples
- [Solved] Xshelln Connect to Local VM linux Error: Could not connect to ‘XXX.168.122.1‘ (port 22): Connection failed
- [Solved] ERROR: Linux route delete command failed: external program exited with error status: 2
- Linux system service command error: Failed to allocate directory watch: Too many open files
- linux Ubuntu Error: No command ‘setenv‘ found
- Error in Linux running file: bash: $’\r’: command not found
- How to Solve Linux Error: -bash: unzip: command not found
- [Solved] Linux Mongodb Error: # Error: coul-bash: connecting: command not found
- Linux Install Bee and Execute Error: bash: bee: command not found
- Linux Command Error: Redis (error) NOAUTH Authentication required
- [Solved] Linux — 9 — txt files are copied from windows to Linux and read error
- [Solved] Web server failed to start. Port 8080 was already in use.
- [Nginx] solution: it can’t be accessed on the background API interface after HTTPS (access the specified port through the domain name)
- Linux accesses the shared directory of windows, pysmb (parameter remote)_Name (defined)
- [Solved] Git Error: OpenSSL SSL_read: Connection was reset, errno 10054和Failed to connect to github.com port 443
- [Solved] Linux Error: mipsel-linux-gcc: fatal error: no input files