Skip to main content
IBM  
Shop Support Downloads
IBM Home Products Consulting Industries News About IBM
IBM developerWorks : Linux : Education - Tutorials
LPI certification 102 exam prep, Part 4
ZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPreviousNext
2. Secure shell
  


Secure copy page 5 of 6


The openssh package also comes with a handy tool called scp, which stands for "secure copy". You can use this command to securely copy files to and from various systems on the network. For example, if I wanted to copy ~/foo.txt to my home directory on remotebox, I could type:


$ scp ~/foo.txt drobbins@remotebox:

After being prompted for my password on remotebox, the copy will be performed. Or, if I wanted to copy a file called bar.txt in remotebox's /tmp directory to my current working directory on my local system, I could type:


$ scp drobbins@remotebox:/tmp/bar.txt .

Main menuSection menuFeedbackPreviousNext
Privacy Legal Contact