#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Location
    entlegen
    Posts
    442
    Rep Power
    14

    hoe to generate private key with gnupg.org in scp operation?


    I have installed the gnupgp.org , it has too many parmeter to generate the publc key.



    scp -r -i /path/to/private/key/file sally@192.168.1.80:/var/qmail /var/save

    can u help with this?
    regards,

    wish to use AT 89c51 single chip computer to do remote sensing and send the data back from woods to office via nokie 3330 and internet. HOW?
    first I must revise C program thro' example, what's next?
  2. #2
  3. No Profile Picture
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Location
    The Emerald City
    Posts
    289
    Rep Power
    13

    Re: hoe to generate private key with gnupg.org in scp operation?


    What do you mean there are too many parameters? All you have to do to generate a key pair is
    Code:
    gpg --gen-key
    and then answer the questions that follow. And what does the command you posted have to do with your question?
    scp -r -i /path/to/private/key/file sally@192.168.1.80:/var/qmail /var/save
    jaa
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Location
    entlegen
    Posts
    442
    Rep Power
    14
    I have armour my public key (1024 bit) and published in my web page.

    then I tried this

    [root@energy .gnupg]# gpg --output doc.gpg --encrypt --recipient auser@email.com xx
    gpg: auser@email.com: skipped: public key not found
    gpg: xx: encryption failed: public key not found
    [root@energy .gnupg]#



    But I do not know how to encrypt a document.

    i export the gpg in /home/auser
    by

    gpg --export auser,

    where can I find UID???
    but the private and public in auser at /home/auser are still empty.


    a-rw-rw-r-- 1 auser auser 0 May 24 17:56 pubring.gpg
    -rw------- 1 auser auser 0 May 24 17:56 secring.gpg


    BUT:
    drwx------ 2 root root 4096 May 27 06:53 .
    drwxr-x--- 24 root root 4096 May 27 04:11 ..
    -rw-r--r-- 1 root root 7793 May 24 12:33 options
    -rw-r--r-- 1 root root 915 May 27 06:35 pubring.gpg
    -rw-r--r-- 1 root root 0 May 24 13:26 pubring.gpg~
    -rw------- 1 root root 600 May 27 06:35 random_seed
    -rw------- 1 root root 1373 May 27 06:35 secring.gpg
    -rw-r--r-- 1 root root 1240 May 27 06:35 trustdb.gpg
    [root@energy .gnupg]# pwd
    /root/.gnupg


    I read and continue faq in gnupg.org.Not much help , may be my eyes are too big.
    - will u shed some light here?

    - what happen when re-generate another shorter 128 bit, will itl over-write the files in /root/.gnupg???

    - encrypt and decryption have problem?
    Last edited by pentium5; May 27th, 2002 at 05:28 AM.
    regards,

    wish to use AT 89c51 single chip computer to do remote sensing and send the data back from woods to office via nokie 3330 and internet. HOW?
    first I must revise C program thro' example, what's next?
  6. #4
  7. No Profile Picture
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Location
    The Emerald City
    Posts
    289
    Rep Power
    13
    Originally posted by pentium5
    [root@energy .gnupg]# gpg --output doc.gpg --encrypt --recipient auser@email.com xx
    You put the options BEFORE the command. The command (in this case '--encrypt' ) is the last thing (except for the filename) on the command line.

    Code:
    [root@energy .gnupg]# gpg --output doc.gpg --recipient auser@email.com --encrypt x
    see the manpage
    man gpg

    jaa

IMN logo majestic logo threadwatch logo seochat tools logo