-3

I need to copy a hiddden dot directory from remote to local. I tried this:

scp ssh:/home/ubuntu/.gnupg/ /local/target

But this gives me an error scp: /home/ubuntu/.gnupg: not a regular file

user3142695
  • 1,599

1 Answers1

1

Since it's a directory, you need -r switch for scp. So the command would be something like:

scp -r ssh:/home/ubuntu/.gnupg/ /local/target
αғsнιη
  • 41,407
bytefire
  • 310