Questions tagged [public-key]
186 questions
117
votes
5 answers
Is it ok to share private key file between multiple computers/services?
So we all know how to use public key/private keys using SSH, etc. But what's the best way to use/reuse them? Should I keep them in a safe place forever? I mean, I needed a pair of keys for accessing GitHub. I created a pair from scratch and used…
Behrang
- 2,032
- 5
- 19
- 26
98
votes
4 answers
Are GPG and SSH keys interchangable?
I want to generate an RSA key in GPG and use it in SSH login. Is this even possible? If so, how?
edit: see @wwerner's answer, I didn't try it but it seems to be the current solution (as of 2018)
destan
- 1,127
- 1
- 11
- 11
37
votes
7 answers
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 command returns error
I'm trying to install Mongodb on Ubuntu 12 but when I run this command:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
This returned the error below:
keyserver.ubuntu.com host not found
gpgkeys: HTTP fetch error 7: couldn't…
nyamka
- 371
- 1
- 3
- 3
30
votes
1 answer
GnuPG / OpenGPG: Recovering public key from private key
I know that the public SSH key can be recovered from the private using ssh-keygen -y.
How can a (deleted) public key be recovered from the private key in GPG (preferably in a way that is OpenGPG compatible)?
leden
- 746
- 1
- 8
- 11
30
votes
3 answers
Can't import public key into OSX Keychain
I created a couple of self-signed S/MIME certificates (using OSX Keychain & OpenSSL) and then exported these into 3 files:
Certificate (.cer)
Private Key (.p12)
Public Key (.pem)
When attempting to import these back into another Mac, the…
Prembo
- 401
- 1
- 4
- 6
30
votes
2 answers
What is the difference between the .pem and .pub and non suffixed ssh credentials files?
Running "ssh-keygen -t dsa" generates two files, a private and public key. Its simple enough to comprehend that the private key is used to identify yourself to the outside world, which only sees your public key.
However, I've also seen ".pem" files…
jayunit100
- 611
- 4
- 8
- 18
30
votes
3 answers
How to create additional gpg keyring
I have public and private keyring files in my .gnupg directory (pubring.gpg and secring.gpg). I want to create a new keyring trustedkeys.gpg, also in .gnupg, to which I can add other people's public keys.
How do I create this new keyring?
rlandster
- 1,332
- 3
- 21
- 32
29
votes
4 answers
Human-readable dump of gpg public key
Is there some tool to write out the actual content of a GnuPG public key in a way a human can unserstand? I mean not only ascii-armor which a human can read and type, but something which really breaks down the data into large decimal numbers for the…
MvG
- 1,479
- 2
- 14
- 26
28
votes
7 answers
Git SSH "permission denied" in macOS 13 Ventura
When I try to authenticate with an RSA SSH key in macOS 13 (Ventura), I get a Permission denied (publickey) error.
However, when I use the same command against macOS 12 (Monterrey), it works correctly.
Haozhe Xie
- 1,161
- 2
- 11
- 14
27
votes
7 answers
No supported authentication methods available in FileZilla
I'm using FileZilla to connect to my SFTP server. But when I'm trying to connect, it gives me this error
Error: Disconnected: No supported authentication methods available (server sent: publickey)
I have generated a private key with PuTTYgen…
Saeed Masoumi
- 615
- 3
- 9
- 19
19
votes
8 answers
public key always asking for password and keyphrase
I am trying to SSH from a NAS to a webserver using a public key.
NAS user is 'root' and webserver user is 'backup'
I have all permissions set correctly and when I debug the SSH connection I get:
(last little bit of the debug)
debug1:…
Andrew Atkinson
- 315
- 1
- 2
- 7
19
votes
3 answers
I got "BEGIN PGP PUBLIC KEY BLOCK" attached to an email and I don't know what it is
Okay, I have no clue what this is, but I just received an email that has this in it.
-----BEGIN PGP PUBLIC KEY BLOCK-----
[redacted]
-----END PGP PUBLIC KEY BLOCK-----
If this means something, could someone decode it for me? If not, then could…
user958945
- 279
- 1
- 2
- 3
18
votes
1 answer
In Keychain Access on OS X, Find matching public and private keys
I have a couple keys that seem to have been generated with the same names. I would like to know which public key match up with which private keys so I can rename/delete them. Is this something that is important (keeping around the public key) or…
ACBurk
- 283
- 2
- 6
16
votes
4 answers
Error 'Permission denied (publickey,password)'
I am trying to connect to a local IP address via SSH from the terminal. The command is
ssh -v user@192.168.0.2
But it is not connecting. It keeps giving me the error
"Permission denied (publickey,password)."
I have been searching for ages and…
harnamc
- 265
- 1
- 3
- 8
16
votes
3 answers
How to check if a GPG encrypted file is encrypted using a specific public key?
Consider if a file is encrypted using command
e.g.
gpg --output test.txt.gpg --encrypt --recipient test@example.com test.txt
Now, consider another person received test.txt.gpg the the pub key test@example.com, how to perform a check to make sure…
Yoga
- 579
- 3
- 8
- 13