Computer Networking
Question:
How do I copy files from a linux server to my local machine w command line?
Joachim D
2006-09-12 22:44:50 UTC
I have logged in using ssh and now want to copy several directories off the server to my local machine.
I attempted with "cp
:
" am I on the right track?
Three answers:
anonymous
2006-09-12 23:01:08 UTC
Yes, you're on the right track. "scp" is a combination of "ssh" and "cp". On your local machine, you can say
scp
:
to grab the file from the Linux server (or any other machine with an ssh server running).
Oops - here is more info:
You said you want to copy several directories. To copy an entire directory with scp, you can use the "-r" flag like this:
scp -r
:
That will copy the directory and all files and subdirectories under it to your local system.
anonymous
2016-12-12 14:09:55 UTC
Copy File From Server
anonymous
2006-09-12 23:51:02 UTC
scp is one way, or (if you are root on the linux server) you can set up a samba server and share files like you would share them on Windows machines.
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...