Questions tagged [public-key]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
26 views

How do I use the openssl command to decode a public key .PEM file?

I have my localhost TSL/SSL certificate from Chrome stored to a .PEM file. Was wondering how do I use the oppenssl command to decode it into a list of human-readable fields. Googling this only ...
0
votes
1answer
27 views

connect ssh key on server windows fail

I want to connect to a Windows server with an SSH key and if I connect via an SSH password, it's works, but if I via my SSH key, it fails I'm user on this server and my public key is %UserProfile%/....
0
votes
1answer
17 views

Bastion with private keys, jailed users and proxycommand

I want to setup a bastion for SSH and tunneling HTTP : let the user use a private key stored on bastion without having read access to it permit the use of proxyjump (or proxycommand) on the client ...
0
votes
2answers
448 views

OSX Big Sur SSH Public Key Location

On a new Mac-mini OSX Big Sur 11.0.1 I cannot find my public SSH key. It's not in ~/.ssh as that only has known_hosts Running the command find / -name "*.pub" -print does not find any ...
0
votes
0answers
17 views

Using GPG4USB, lost my passphrase :(

Hey folks ! I´m using gpg4usb and lost my passphrase. I got my pub key and private key. Any ideas how i can grab my passphrase again? regards, ontheROX
1
vote
1answer
62 views

ssh-keygen, is it possible same public key generated? (ssh public key duplicate)

Is it possible same public key generated? In the following example, the two keys(test1.pub, test2.pub) created are different public key. $ ssh-keygen -C IsItPossible Generating public/private rsa key ...
0
votes
0answers
38 views

Why does ssh require the public key in order to delete a private key from the keychain?

If I have a private key file available locally, I can add it to ssh-agent like this: $ ssh-add key.private Identity added: key.private (key.private) Now I can see that key in the agent: $ ssh-add -l ...
0
votes
0answers
11 views

Why is the Key ID from an encrypted file different from the ID of the key used to encrypt it?

I have created a new key with gpg. For example let's say I get the following key pairs as a result: ~$ gpg --keyid-format long --list-keys /home/me/.gnupg/pubring.kbx --------------------------- pub ...
0
votes
0answers
45 views

WIndows 10 ssh public key auth - server does not accept public key

I'm having both client and server running Windows 10, and did the steps according to the following guidelines in both client and server(ssh-keygen, put pub key in server auth keys file...): Key-based ...
0
votes
1answer
583 views

Putty Private/Public Key Pair - Generate Certificate

I have generated a private/public key pair using Putty. I have a private key file with extension .pem and public key file with extension .pub. Now I want to create a certificate from that and import ...
1
vote
0answers
53 views

SSH | Permission denied (publickey)

I have two VMs in Google Cloud: I need to establish SSH connection between them. I generate a key in vm by ssh-keygen. saviord7@vm:~/.ssh$ ls -l total 12 -rw------- 1 saviord7 saviord7 1766 Aug 19 15:...
0
votes
1answer
136 views

Is there a SSHD “Match” Argument for “If user doesn't use pubkey/SSH key auth, do x”?

Is it possible to create a Match argument for when a SSH connection doesn't use a public key for authentication (such as when they use a password instead)? Ideally, I want to run a certain ...
0
votes
0answers
88 views

What is the correct syntax for the default key in the gpg.conf file? Path = C:\Users\admin\AppData\Roaming\gnupg\gpg.conf

Version of GPA I'm using Hello, I'm new here so if I break any rules of the forum I am apologizing in advance. I'm using the version specified in the screenshot and my question is simple. Everything ...
0
votes
0answers
40 views

How to organize one OpenPGP key for many non public identities?

I want to use the same gpg key for public@example.com info@example.com private@example.com private@example.edu private@example.net I do not want that the private contacts are uploaded to any ...
1
vote
0answers
211 views

Proftpd: Use public key only to connect

My requirement is such that there must be a custom proftpd docker image which any user can use. The user will run the docker container using the image and on running will mount a mount path to the ...
0
votes
1answer
49 views

Unexplained cached public fingerprint for private ssh key with ssh-keygen

I'm having a weird problem with SSH. I'm using ssh-keygen -lf id_rsa to generate the public fingerprint from my private ssh key id_rsa. However, no matter how I replace or change the contents of my ...
1
vote
1answer
82 views

OpenSSH RSA publickey mysterious auth failure

I'm not new to configuring OpenSSH to require public key authentication, or generating keys and setting up access via authorized_keys, but this one has me stumped. I made a Linux Mint box for my in-...
0
votes
1answer
145 views

Importing server public key into FileZilla (or other sftp clients)

How to import server public key into FileZilla? I'm able to access my server from SSH, and have the privilege to view whatever that's in /etc/ssh. I can produce hash fingerprints for these public ...
0
votes
1answer
144 views

share ssh public key on sftp configuration

I've configured a SFTP server on CentOS following this doc. My intention is to forbid the console login for the new users (user1, user2), which belong to the sftpusers group, but still can log in to ...
0
votes
1answer
725 views

How to verify a gpg-signed file against a specific public key?

Background information: I have a directory full of files and detached .asc signatures. I also have my default keyring which includes many public keys of people (some of whom I trust and others I don't)...
1
vote
1answer
138 views

How could I connect ansible by ssh into 2 Vagrant machines (Virtualbox Hypervisor)?

I would like to connect by ssh one machine with another to do ansible commands. I have a CentOS7 and want to connect inside the OS to Ubuntu16 VM. Look at my Vagrantfile and what I tried: Vagrant....
2
votes
1answer
696 views

How to verify an ssh key is valid for a given a host?

I want to test the validity of an ssh passphrase-protected identity file against a given host. I do not want to actually provide the passphrase nor do I necesarily know it, just verify that the ...
0
votes
1answer
329 views

DISM RestoreHealth fail because an Invalid public key token

After some trouble with my OS (Windows 8.1 Professional N), i've decide to run the good old SFC /scannow, which found and repair some corrupted file. The CBS log report: 2019-10-05 06:52:37, Info ...
0
votes
1answer
41 views

Public key authentication and change of password

I have set up public key authentication for my Raspberry server. If I change the password of the user authenticated by the public key, shall I recreate the public key? Please advise. Thanks, Dan
1
vote
0answers
127 views

Openssl DSA Signature Verification Failure Error not understood

I am given a public key in PEM format: -----BEGIN PUBLIC KEY----- MIIDRjCCAjkGByqGSM44BAEwggIsAoIBAQCPPVSofEh+2wGLK/1UOEbx7R5YgCp5 JVrhglBS2QZxdiYnl9JCHVuFQC/vOxFeNmP9GUxv1vcQ7Jjr0J26sdUDFg+dP3ZD ...
0
votes
1answer
107 views

SSH connection via intermediate hosts with keys

I read several versions of this question and try to implement them but they did not work so I want to ask my problem with specific details. Host A: Local Computer Host B: Intermediate computer ( I ...
6
votes
1answer
5k views

OpenSSH public key file format?

I am having trouble parsing an OpenSSH public key file. I believe (but I am not certain) the format is detailed in RFC 4253, The Secure Shell (SSH) Transport Layer Protocol Section 6.6, Public Key ...
0
votes
1answer
60 views

force scenario about REMOTE HOST IDENTIFICATION HAS CHANGED

everyone know the following message "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r", "@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @\r", "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
2
votes
1answer
529 views

Differences between ssh-keygen private keys and libressl's?

I generated a private key using libressl 3.0 using curve secp521r1. openssl genpkey -aes128 -algorithm EC -pkeyopt ec_paramgen_curve:secp521r1 -pkeyopt ec_param_enc:named_curve As far as I know this ...
1
vote
1answer
3k views

what is the size of public key for ecdsa spec256r1

I tried to generate pair key for ecdsa using openssl. Why the public key length is 65 bytes and not 64? Create private key openssl ecparam -genkey -name secp256r1 -noout -out private.pem Generate ...
0
votes
0answers
38 views

Windows successfully executes ssh but Manjaro does not (publickey)

I have a Raspberry Pi and I can login to it using Windows.  The .ssh/known_hosts file is empty.  However, using Manjaro (a fresh install), I get the following error: pi@raspberrpi: Permission denied (...
1
vote
0answers
237 views

importing public key with GNU Privacy Assistant (win 10)

I am trying to import my public key that I generated with Kleopatra and GNU Privacy Assistant. First I generated my public and private keys. I then export my public key and save it to my desktop (...
0
votes
1answer
13k views

How to fix shell request failed on channel 0

a public key authentication is established between 2 machines (windows and linux) when i attempt to connect from the first machine (OS: Centos 7) to the second machine (windows server) , a error ...
1
vote
0answers
2k views

OpenSSH resetting connection when I try to SSH

I'm trying to set up my local Windows 7 machine to receive SSH connections so I tried to follow this guide on how to install OpenSSH into a Windows machine to server as an SSH server. I was able to ...
2
votes
1answer
1k views

Load key “ec256.pem”: invalid format is thrown on trying to generate public key from private key

I am trying to generate public/private key pair using ECDSA curve secp256k1 On generating public key from ec256.pem (private key) the following error is thrown "Load key "ec256.pem": invalid format" ...
4
votes
2answers
5k views

How can I convert a public key generated by PuTTY to RFC 4716 format?

I am using PuTTYgen in order to generate public and private key. My question is, how could I convert this files to RFC4716 format? PuTTYgen allows me to save the public key under a general format, ...
0
votes
1answer
2k views

Can't use Debian archive repositories, despite having installed debian-archive-keyring and debian-keyring

I'm trying to use some Debian Archive repositories in my sources.list, for testing purposes. I want to be able to search packages from Debian Sarge. My sources.list looks like that: # Stretch (...
5
votes
3answers
12k views

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@...
1
vote
1answer
54 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
41 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 ...
-2
votes
1answer
691 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
12k 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, ...
2
votes
2answers
3k 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
116 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
159 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
92 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
760 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
1answer
185 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
262 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
1k 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 ...