Posts Tagged ‘Copying’
25
Jun
Simple copy through SSH
Copying files between remote machines can be easily done
using SCP command.
The syntax is:
copy from a remote machine to my machine:
scp user@192.168.0.1:/home/file.txt /home/x.txt
copy from my machine to a remote machine:
scp /home/x.txt user@192.168.0.1:/home/x.txt
copy all x*.txt from a remote machine to my machine (x01.txt, x02.txt, etc.)
scp “user@192.168.0.1:/home/x*.txt” /home/x.txt
copy a directory from a remote machine to my machine:
scp -r user@192.168.0.1:/home/folder /home/
Tags: Command, copy, Copying, Definitions, directory, div, file, folder, Home, machine, margin, MsoNormal, MsoNormalTable, New, page, SCP, Section, Simple, size, SSH, Style, syntax, Times, txt, user
