Use SCP to copy files (Windows)
1. Using Windows Command Prompt or PowerShell:
- Using Windows Command Prompt:
scp [options] source_file user@hostname:destination_path
- Using PowerShell:
scp [options] source_file user@hostname:destination_path
2. Install SCP (if not already available):
- On Windows, SCP can be used if OpenSSH is installed. Windows 10 and above have OpenSSH built-in.
- Alternatively, you can use PuTTY (which includes an SCP client called PSCP):
3. Download and install PuTTY.
Use PSCP:
pscp [options] source_file user@hostname:destination_path
4. Examples:
- Copy a File from Local to Remote:
scp C:\path\to\local\file.txt username@remote_host:/path/to/remote/directory
- Copy a File from Remote to Local:
scp username@remote_host:/path/to/remote/file.txt C:\path\to\local\directory
Additional Notes:
Make sure your scp command is recognized by the command line by checking the environment variable or installing the necessary tools (OpenSSH or PuTTY).
General Notes:
- Ensure you have the necessary permissions to access the source and destination locations.
- You may need to set up key-based authentication. Follow these instructions: https://docs.computing.dcu.ie/student-server/02-ssh-keys/