Option 1: Use SCP command
Windows*:
- Launch Bare Metal / Virtual Machine instance with SSH command on command prompt.
- Open another new command prompt.
- Navigate to the path of the file that needs to be uploaded.
e.g. cd C:\Users\username\Downloads - Upload file to Bare Metal instance.
scp -P 10022 [FILE_NAME] devcloud@localhost:[PATH_TO_DESTINATION]
e.g. scp -P 10022 file.txt devcloud@localhost:~ - To download files from a launched Bare Metal, open a new terminal on the local system and type the command:
scp -P 10022 devcloud@localhost:[PATH_TO_DESTINATION]
e.g. scp -P 10022 devcloud@localhost:~
Note | If uploading file to Virtual Machine instance, change to ubuntu@localhost instead of devcloud@localhost. scp -P 10022 [FILE_NAME] ubuntu@localhost:[PATH_TO_DESTINATION] |
Ubuntu*:
- Launch Bare Metal / Virtual Machine instance with SSH command on terminal.
- Open another new terminal.
- Upload file to Bare Metal instance.
scp -P 10022 [PATH/FILE_NAME] devcloud@localhost:[PATH_TO_DESTINATION]
e.g. scp -P 10022 ~/Downloads/file.txt devcloud@localhost:~ - To download files from a launched Bare Metal, open a new terminal on the local system and type the command:
scp -P 10022 devcloud@localhost:[PATH_TO_DESTINATION]
e.g. scp -P 10022 devcloud@localhost:~
Option 2: Use Rsync command
Windows:
- Install Rsync on Windows* by following the step guide.
Note | This external link (step guide) is not maintained by Intel. |
- Add installed Rsync to your %PATH% environment variable.
- Remove default OpenSSH path C:\WINDOWS\System32\OpenSSH\ from your %PATH% environment variable.
- Launch Bare Metal / Virtual Machine instance with SSH command on command prompt.
- Open another new command prompt.
- Navigate to the path of the file that needs to be uploaded.
e.g. cd C:\Users\username\Downloads - Upload file to Bare Metal instance.
"C:\Program Files\Git\usr\bin\rsync.exe" -avz --progress -e 'ssh.exe -p 10022' [FILE_NAME] devcloud@localhost:[PATH_TO_DESTINATION]
e.g. "C:\Program Files\Git\usr\bin\rsync.exe" -avz --progress -e 'ssh.exe -p 10022' file.txt devcloud@localhost:~
Ubuntu:
- Launch Bare Metal / Virtual Machine instance with SSH command on terminal.
- Open another new terminal.
- Upload file to Bare Metal instance.
rsync -avz --progress -e 'ssh -p 10022' [FILE_NAME] devcloud@localhost:[PATH_TO_DESTINATION]
e.g. rsync -avz --progress -e 'ssh -p 10022' file.txt devcloud@localhost:~