Questions tagged [public-key]
190 questions
                    
                    119
                    
            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 Saeedzadeh
        
- 2,110
 
                    100
                    
            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,157
 
                    39
                    
            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
        
- 491
 
                    33
                    
            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
        
- 806
 
                    32
                    
            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,522
 
                    31
                    
            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
        
- 641
 
                    30
                    
            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
        
- 663
 
                    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
 
                    30
                    
            votes
                
                5 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,519
 
                    29
                    
            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,289
 
                    22
                    
            votes
                
                4 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
        
- 649
 
                    21
                    
            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
        
- 315
 
                    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
 
                    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
 
                    18
                    
            votes
                
                3 answers
            
        Receiving a key from a keyserver in gnupg
How does one receive a key from a keyserver in gnupg?
I have tried typing $ gnupg rec-keys "the key"
Error given was, 
usage: gpg [options] [filename]
I have also entered just rec-keys "the key"
Error given, recv-keys: command not found
in addition…
        
        Jason Basanese
        
- 391