Questions tagged [public-key]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
31 views

Is it possible to verify a GPG file signature on Linux & Windows without internet connection?

Can you please hint me to the steps I need to verify a file's signature (without connecting to the Internet) on command line using GnuPG, when I have the three required files ready: installer file (....
0
votes
1answer
24 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
64 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
0answers
43 views

Accidently deleted “~/.gnupg/pubring.kbx” , how to recover keys

is there is any way to recover the encryption keys in this case, since they really important 1) the issue: i've lost my gpg key identifiers by deleting ~/.gnupg/pubring.kbx , however ~/.gnupg/...
0
votes
1answer
48 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
46 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
0answers
55 views

Public Key Authentication for Users in Reflection for Secure IT Server?

I am trying to add my public key on Attachmate Reflection for Secure IT Server. I followed the steps in the docs (http://docs.attachmate.com/reflection/rsit-ssh/8.2/winserver/help/index.htm?toc.htm?...
0
votes
1answer
125 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
112 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
129 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
216 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
0answers
23 views

How to convert a public key to readable RSA key

Im trying to convert a public key into an rsa key format, is there any easy way to do this online?
0
votes
1answer
21 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
74 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
44 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 ...
4
votes
1answer
2k 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
55 views

force scenario about REMOTE HOST IDENTIFICATION HAS CHANGED

everyone know the following message "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r", "@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @\r", "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
0
votes
1answer
189 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
961 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
31 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
125 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
0answers
21 views

How should I generate a CSR to get my personal email's key pair be verified?

So I'm currently looking to get my public/private key pair that I use to sign emails to get verified by SwissSign, and the service requires me to provide a CSR. So my first question is how should I ...
0
votes
1answer
7k 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
805 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" ...
2
votes
1answer
2k 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
1k 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 (...
3
votes
3answers
5k 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
53 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
40 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
422 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
10k 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
2k 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
70 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
136 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
88 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
572 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
597 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
1answer
171 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
233 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
705 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 ...
2
votes
1answer
5k 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
4k 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 ...
3
votes
0answers
712 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 ...
3
votes
1answer
2k 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 ...
2
votes
2answers
292 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. ...
3
votes
1answer
12k 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 ...
2
votes
2answers
8k 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
139 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
356 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 ...