Generate gpg keys on both remote and local terminal :
gpg --gen-key
Please select what kind of key you want:
Select (1) DSA and Elgamal (default)
What keysize do you want? (2048)
Choose default 2048(just press enter)
Key is valid for? (0)
press enter key does not expire
Is this correct? (y/N)
press y
Real name:
enter key name e.g: term-Gpg
Email address:
enter email…
Comment:
optional press enter if none
Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit?
press O and enter
You need a Passphrase to protect your secret key.
enter your ultra duper secure passpharse.
generate some activity on the terminal,move your mouse or search for a file. while it generates random
bytes.
finally if all goes well… the ff will be shown.
public and secret key created and signed.
gpg: checking the trustdb
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
pub 1024D/YYYYXXXX 2011-06-03
Key fingerprint = 1111 2222 3333 4444 5555 6666 7777 8888 9999 aaaa
uid Term7-Gpg
sub 2048g/XXXXYYY 2011-06-03