Hi
My server works operation system openSuSE. Package OpenPGP has installed. This package works both a server console and via a remote access.
I study package OpenPGP with my students in the computer class (15 computers) via remote access, protocol SSH, port 22. All the features and commands gpg2 are workable. There is a little problem with creating keys.
When I type in the remote console:
gpg2 --gen-key
then go interactive mode and answer questions to the program as shown in the following screen:
=================== console ===========================
strekoza:~ # gpg2 --gen-key
gpg (GnuPG) 2.0.19; Copyright (C) 2012 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Please select what kind of key you want:
(1) RSA and RSA (default)
(2) DSA and Elgamal
(3) DSA (sign only)
(4) RSA (sign only)
Your selection? 1
RSA keys may be between 1024 and 4096 bits long.
What keysize do you want? (2048)
Requested keysize is 2048 bits
Please specify how long the key should be valid.
0 = key does not expire
<n> = key expires in n days
<n>w = key expires in n weeks
<n>m = key expires in n months
<n>y = key expires in n years
Key is valid for? (0) 56
Key expires at Mon Jun 20 16:06:19 2016 MSK
Is this correct? (y/N) y
GnuPG needs to construct a user ID to identify your key.
Real name: Dremu4ii
Email address: dremu4ii@polo.horse.org
Comment: welcome to PGP
You selected this USER-ID:
“Dremu4ii (welcome to PGP) <dremu4ii@polo.horse.org>”
Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
You need a Passphrase to protect your secret key.
We need to generate a lot of random bytes…
=================== console ===========================
When I enter the password and the program then hangs. It requiring generate many random numbers. If I run in a nearby console, command that “does nothing”, for example:
ls -la -R /
It helps sometimes if does it 2-3 times, then keys can be created. This helps, but not always.
If I type the command:
gpg2 --gen-key
run directly on the console server, this problem does not occur and the keys will be created.
Tell me, please, what can I do?