Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [public-key]

The tag has no usage guidance.

1
vote
1answer
36 views

I've generated a public key: 2976 bits …?

I have generated a public key via ssh-keygen -f foo. The key inside the file foo.pub is AAAAB3NzaC1yc2EAAAADAQABAAABAQDaJ1UGxfjTCzuVNvgjOyK/NF5KFDO2qUREGd9PBB+zJotS85XO9hQjq5XhdekXHfhCM/h3AeGW/xH+...
0
votes
2answers
28 views

Issues understanding CA certificates

I have misconceptions regarding CA (Certificate Authority) certificates. No matter how many things I read, it is still not fully clear. Let's take an example, Bob accesses a website. In order for ...
0
votes
0answers
15 views

Ubuntu ssh-copy-id using an existing private key?

I know the easiest way is to ssh using an existing account into target and add the public key of another user account into .ssh/authorized_keys. Is it possible to do this using ssh-copy-id? ...
-2
votes
1answer
50 views

Cannot connect to server using my public key

I copied my public key to ~/.ssh/authorized_keys on the server. Now I'm trying to establish an ssh connection, but it doesn't work. This is the output from ssh -v (server domain and ip address ...
19
votes
3answers
8k views

I got “BEGIN PGP PUBLIC KEY BLOCK” attached to an email and I don't know what it is [duplicate]

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, ...
1
vote
2answers
159 views

How to delete public key by fingerprint?

In my pubring.gpg I have two users with the same email address, but one of the entries is not valid anymore. How one can delete one of them?
0
votes
0answers
24 views

Decrypt SSL traffic with the openssl command line tool 9

After it was pointed out the client was requesting the extended master secret and I was responding with that as well I was deciphering the master secret as if we where not using the extended master ...
0
votes
0answers
49 views

Decrypt SSL traffic with the openssl command line tool 8

For my final steps in my script I followed this to obtain the client encryption key to perform the decryption with. client.random xxd -p crnd.bin ...
0
votes
0answers
35 views

Decrypt SSL traffic with the openssl command line tool 7

Generating the master secret/key I followed the steps outlined in my shell script. I validated that I am passing data correctly to it by manually entering these steps several times (entering $key ...
0
votes
0answers
80 views

Decrypt SSL traffic with the openssl command line tool 6

For the first part in decrypting the server pre master secret I have been using: openssl rsautl -in cpre.key -inkey key.pem -decrypt -out spre.key where cpre.key is in binary when fed to this and ...
1
vote
1answer
161 views

Decrypt SSL traffic with the openssl command line tool - continued part 5

From my previous posts part 1, part 2, part 3 and part 4 I believe I have calculated/decrypted everything correctly and ready to attempt to decrypt the client encrypted handshake message. I'm stuck on ...
0
votes
0answers
347 views

Unable to ssh due to authentication issue

I am unable to ssh to my api server now due to authentication issue. It used to login without asking a password earlier. I tried ssh-copy-id to copy the public key to the server before doing ssh but ...
0
votes
0answers
127 views

Decrypt SSL traffic with the openssl command line tool - continued part 4

From my previous question(s)/thread starting part 1, part 2 and part 3 I think I may be getting somewhere with the advice/assistance I have been getting. My data is a little different this morning as ...
0
votes
1answer
116 views

Decrypt SSL traffic with the openssl command line tool - continued part 3

From my previous questions/thread starting part 1 and follow up part 2 following my guided explanation since my files/data I am capturing is binary in nature I used the following openssl commands ...
1
vote
1answer
127 views

Decrypt SSL traffic with the openssl command line tool - continued

I got an answer to my original question here hopefully it is ok to ask a follow up question by posting another question. From my original question above I was able to decrypt the client pre master ...
2
votes
2answers
248 views

Decrypt SSL traffic with the openssl command line tool

I'm trying to do some manual data extraction/encryption/decryption with the openssl command line tool. I've been reviewing RFC5246 to work out what I need to do. It is not crystal clear to me if I am ...
0
votes
1answer
683 views

SSH proxyjump with identityfile in the proxy only

I couldn´t find my specific case in other threads. Basically I have my PC (ubuntu), a proxy (Debian), and a target (Debian). I want to do a proxyjump from the PC to the target going through the proxy....
0
votes
2answers
1k views

Could not load key file. File 'id_rsa.pub' could not be loaded or does not contain a private key. - File Zilla

While trying to connect to AWS instance using SFTP, it gives me an error while setting the ~/.ssh/id_rsa.pub file for connection. Error - Could not load key file. File 'id_rsa.pub' could not be ...
2
votes
0answers
271 views

SFTP partial authentication using publickey,password preferred authentication methods

I'm encountering an issue when attempting to connect to an SFTP server that requires both public key and password authentication. The source server is a fully up-to-date CentOS 7 server (SFTP debug ...
1
vote
1answer
407 views

Why is ssh ignoring my ~/.ssh/config? Cannot commit to github

I have configured OpenSSH to use a specific key when I login to github.... [mpenning@mudslide .ssh]$ pwd /home/mpenning/.ssh [mpenning@mudslide .ssh]$ ls -la | grep config -rw-r--r-- 1 mpenning ...
1
vote
1answer
107 views

SSH user public key info

I want to find out which SSH user started my script on a server via SSH, i.e. which public key was used for the user to log in. SSH_CONNECTION environment variable gives me the client's IP address. ...
2
votes
1answer
4k views

How to find public key of the server using any SFTP/SSH client

Is there any way to get SFTP server's public key from any Sftp client or by using any tool? I have access (username/password) to connect to production SFTP remote server and I would like to find the ...
1
vote
2answers
3k views

Unable to login to host via ssh, just see 'Connection closed' in authlog

I am trying to allow a user remote access to a Linux host, for purposes of continuous deployment, but I am not sure why the user can not get connect to the host, despite the public key being setup. ...
1
vote
1answer
125 views

How to setup private key ssh connection? [closed]

Lets say that to login to a remote address instead of a ssh login and password I have received rsa private and public keys. Is it safe to use it and how should I add them to the .ssh folder? manually ...
0
votes
1answer
255 views

SSH login to Cisco switch using public key - protocol error, type 60

I issued strange problem while trying to connect from Debian system to Cisco C2960 via SSH using public keys. I generated keys in my Windows XShell client (RSA, 1024bit). After it I exported those ...
1
vote
0answers
602 views

SSH2 in Bitvise terminates unexpectedly

I'm trying to connect Bitvise with a cloud server to make some changes in my magneto website. When I click login it creates connection without any problem. But after a few seconds it terminates ...
0
votes
1answer
2k views

“keyserver timed out” despite disabled firewall

Trying to add keys in a Ubuntu 14.04 virtual machine using a makefile, but I keep running into an error, although I've tried several tricks like switching to port 80 or disabling firewall. root@...
1
vote
1answer
1k views

Generate .pem RSA public key file using base 10 modulus and exponent?

My question is as simple as the title: given the modulus and exponent in base 10 of a public RSA key, how can I generate a .pem file? (I'm using Unix). Thanks. My apologizes if this is the wrong ...
0
votes
0answers
953 views

pscp between local (Windows) and remote (Linux) with private key

I currently copy files from a Windows server to a Linux server via PSCP using username/password authentication however I need it to use public/private key authentication instead. I have exhausted the ...
1
vote
0answers
47 views

GnuPG --> How do I list only the keys that have my signature

I use my signature to validate a public key. If someone's public the key is signed by me, then it is considered secure to encrypt and send emails to that recipient. Is there a command under gpg that ...
2
votes
1answer
307 views

Is it possible to use common AuthorizedKeysFile for a group of users without disabling StrictMode in sshd_config?

# rpm --query centos-release centos-release-7-2.1511.el7.centos.2.10.x86_64 I want to use a common AuthorizedKeysFile in sshd for multiple users on my server. For that, I added: Match Group my-...
0
votes
1answer
402 views

OpenSSH on Windows 10 closes connection when public key is present

I just installed OpenSSH on my Win10 machine to be able to execute commands on it from my Raspberry Pi running the latest Raspbian. I can login fine from my MacBook and my Pi to the SSH server on my ...
0
votes
0answers
78 views

A digital certificate contain only one public key?

If I know well, many digital certificate can contain a single public key. But I didn't see a certificate containing more public key. I would like to know if it is completely impossible to a ...
1
vote
1answer
89 views

rsync throws error when using priv/pub key

I have a .sh file that I can manually trigger to run a backup to a remote server on the local network. It looks like this: rsync -avzP -e ssh -i /mnt/local/ root@192.168.9.114:/DataVolume/shares/...
0
votes
0answers
30 views

SSH login behaviour using passphrase or password

What is the correct behavior of SSH when it comes to authentication on SSH login? Is it passphrase prompt and password prompt? Or is it passphrase only? Because in my setup i have tried all but i do ...
0
votes
2answers
2k views

How to access a remote repository using git bash windows (permission denied, public key - error)

Im connecting for the first time to a remote git server using bash. These were my steps: Loaded the existing key in PUTTYgen Saved the .ppk private key and then exported to my .ssh as OpenSSH under ...
5
votes
2answers
2k views

How to list trust level of OpenPGP public keys in GnuPG?

While I can determine the trust level I have placed on an individual OpenPGP public key by using the --edit-key command, is there a simple way to list all the public keys along with their trust levels ...
-3
votes
1answer
605 views

Remove unnecessary under-the-hood GPG public key cryptography

Background: Some existing programs, such as git-annex (git-annex encryption) and pass, delegate cryptography to GPG, "a complete and free implementation of the OpenPGP standard". More specifically, ...
0
votes
1answer
397 views

RSA public key encryption using pkcs padding mode

I have a public key (modulus and exponent) in Base64 encoded form: MIICIjANBgkqhkiG9w0B AQEFAAOCAg8AMIICCgKCAgEA4IJZLsjlx+o4RSvafaAcReoNnzrI0UXu7kZyXPe31ql32X9AvhC6QQIU... I want to encrypt a text ...
0
votes
1answer
387 views

Using OpenSSL library to convert .key encoded to .pem

I created a C program that takes in an encrypted file (encrypted.key) file and a public key to decrypt the private encrypted encrypted.key. However, my program only works when taking in two files that ...
2
votes
0answers
323 views

Getting “rpm: -–import: unknown option” when tryihng to import public key on Amazon Linux

I’m tryhing to install Google Chrome on Amazon Linux using this site — , and one of the steps is [davea@mydevbox ~]$ sudo rpm -–import linux_signing_key.pub Unfortunately, when I try this, I get the ...
0
votes
0answers
229 views

public key authentication not working with “ssh/sftp Daemon” on android

I can sftp to my android device using password. However i can not set up this using public key auth. $ ssh -vvv root@192.168.1.10 SSHD Server debug1: Authentications that can continue: publickey,...
1
vote
3answers
167 views

Who generates the keys?

I think I know the answer, but I'll ask anyway... I'm being given access to a remote server with SSH access. Who should generate the private/public key pair? My understanding is that I should ...
2
votes
1answer
1k views

How does Pageant work when it has multiple keys loaded?

I'm trying to be organized with my work with servers and so with ssh keys but it seems to be impossible. So I'm thinking to move from Pageant to Serveauditor which is used by the CERN too. But before ...
0
votes
1answer
96 views

Best way to signal no longer used (lost) key

I have an old PGP key for which I don't have the secret anymore, nor the revocation certificate, and when I created the key I did it without expiration date. So I know, I have to move on, and so I ...
1
vote
2answers
369 views

Can PGP messages be verified with just the fingerprint of the public key?

What is the difference between sharing a public key and sharing just its 40-digit fingerprint? The public key is very long, so if I wanted someone to be able to verify my messages, could I just mail ...
0
votes
1answer
168 views

Why do I need a certificate to create my own other self-signed certificate

In the last few days I was trying to understand the story of certificates, and I understood the main principle of them, but I didn't understand that step when we create a CA cert to sign my own server ...
1
vote
1answer
1k views

Can I use the same key for SSH from different clients with the same username?

Situation: One server with SSH daemon. Multiple clients with the user myUser which should connect to the server via SSH. With password based authentication everything is fine. Now I would like to ...
2
votes
1answer
2k views

How to extract public key from attestation certificate to use it for signature verification?

I want to extract the public key from a certificate to verify a given signature (to answer my own question in relation to the registration part). I've tried openssl x509 -in certificate.pem -pubkey -...
1
vote
1answer
383 views

Can I use GnuPG connect to PGP public key servers?

I use gpg 1.4.19 on Windows. Can I communicate with the server directly from the command line? I tried this many things, but nothing worked: Tried: >gpg --keyserver hkp://pgp.mit.edu --search-...