Questions tagged [public-key]

175 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
  • 1,982
  • 5
  • 17
  • 25
90
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,047
  • 1
  • 10
  • 11
33
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
  • 331
  • 1
  • 3
  • 3
29
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
  • 391
  • 1
  • 3
  • 5
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
  • 595
  • 3
  • 8
  • 19
26
votes
3 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,419
  • 2
  • 14
  • 25
26
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
  • 561
  • 4
  • 7
  • 17
26
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,172
  • 3
  • 18
  • 30
23
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
  • 666
  • 1
  • 7
  • 11
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
17
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
  • 273
  • 2
  • 6
14
votes
2 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
  • 321
  • 1
  • 3
  • 13
13
votes
2 answers

SSH: known host with dynamic address

I need to connect to a host with a dynamic IP address. Every time its IP changes, SSH prompts me the fingerprint validation thing: The authenticity of host '...' can't be established. RSA key fingerprint is .... Are you sure you want to continue…
peoro
  • 1,043
  • 9
  • 17
13
votes
1 answer

How safe is it to make my SSH Public key, very public?

Is it a security risk to allow anyone to see your SSH public key? My public key(s) are on all the machines I login to regularly, and I've also given other sysadmins my .pub file so they allow me access to their servers, as required. But: how safe is…
Alister Bulman
  • 921
  • 10
  • 14
1
2 3
11 12