How to scp a hidden dot directory [duplicate]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
-3
down vote

favorite













This question already has an answer here:



  • How to copy all files from a directory to a remote directory using scp?

    3 answers



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







share|improve this question












marked as duplicate by αғsнιη, jasonwryan, Stephen Rauch, Community♦ Oct 20 '17 at 6:46


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 1




    man scp | less -p '-r'...
    – jasonwryan
    Oct 20 '17 at 4:46














up vote
-3
down vote

favorite













This question already has an answer here:



  • How to copy all files from a directory to a remote directory using scp?

    3 answers



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







share|improve this question












marked as duplicate by αғsнιη, jasonwryan, Stephen Rauch, Community♦ Oct 20 '17 at 6:46


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 1




    man scp | less -p '-r'...
    – jasonwryan
    Oct 20 '17 at 4:46












up vote
-3
down vote

favorite









up vote
-3
down vote

favorite












This question already has an answer here:



  • How to copy all files from a directory to a remote directory using scp?

    3 answers



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







share|improve this question













This question already has an answer here:



  • How to copy all files from a directory to a remote directory using scp?

    3 answers



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





This question already has an answer here:



  • How to copy all files from a directory to a remote directory using scp?

    3 answers









share|improve this question











share|improve this question




share|improve this question










asked Oct 20 '17 at 4:35









user3142695

362816




362816




marked as duplicate by αғsнιη, jasonwryan, Stephen Rauch, Community♦ Oct 20 '17 at 6:46


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by αғsнιη, jasonwryan, Stephen Rauch, Community♦ Oct 20 '17 at 6:46


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









  • 1




    man scp | less -p '-r'...
    – jasonwryan
    Oct 20 '17 at 4:46












  • 1




    man scp | less -p '-r'...
    – jasonwryan
    Oct 20 '17 at 4:46







1




1




man scp | less -p '-r'...
– jasonwryan
Oct 20 '17 at 4:46




man scp | less -p '-r'...
– jasonwryan
Oct 20 '17 at 4:46










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










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





share|improve this answer





























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote



    accepted










    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





    share|improve this answer


























      up vote
      1
      down vote



      accepted










      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





      share|improve this answer
























        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        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





        share|improve this answer














        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






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Oct 20 '17 at 5:25









        αғsнιη

        15.6k92563




        15.6k92563










        answered Oct 20 '17 at 4:53









        bytefire

        235110




        235110












            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay