71
18
I have a centos server lets say with ip: 1.2.3.4. I want to download a file from 1.2.3.4 at path /root/pc/filename.rar to my localhost host (current pc). What command I need to download that file? I am trying like this but its not working
scp root@1.2.3.4:/root/pcfilename.rar
I want to download that file into my system current directory.
1The question specifically asks how to do this with
scp
. Since the other answers show that it is possible to do it inscp
, there’s no need to present a solution using a different utility. You don’t offer any reason why anrsync
solution is preferable, and what you do say is unclear. – G-Man Says 'Reinstate Monica' – 2020-01-09T22:23:45.337