-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,529
  • 7
  • 20
  • 34

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нιη
  • 40,939
  • 15
  • 71
  • 114
bytefire
  • 310
  • 3
  • 11