I am trying to use the linux command Scp to get a file of a server xx.xx.xxx.xx and onto my Desktop. Here is my syntax
scp admin@xx.xx.xxx.xx:/scraper/summary.csv /home/barns/Desktop
I am getting the error
'permission denied (publickey)'
Is my syntax incorrect?
Advertisement
Answer
scp admin@xx.xx.xxx.xx:~/scraper/summary.csv /home/barns/Desktop
I needed a ~ symbol before the directory name