I have a zip file and I want to copy this file into my linux server.
How should I do this via a command-line interface?
CodePudding user response:
You can use scp
to upload files to remote servers. It is preinstalled on Windows 10 and 11.
To upload a file run:
scp localfile.zip user@host:/path/to/destination/
To download a file run:
scp user@host:/path/of/file.zip ./local/directory/
If your remote servers SSH port is not 22 you have to specify the port like this:
scp -P 2020 localfile.zip user@host:/path/to/destination/
Change the user
to your remote servers username and host
to your remote servers hostname or IP address. For example [email protected]
CodePudding user response:
You could use "SFTP". Look at this