Questions tagged [public-key]
The public-key tag has no usage guidance.
177
questions
0
votes
0
answers
17
views
Create a Root CA self-signed certificate using the command line
I have Microsoft Server 2019 offline Root CA
I want to renew the Root CA certificate, but I do not want it to be used immediately (as I want to push out the new Root CA certificate to key stores on ...
1
vote
1
answer
66
views
Fingerprint in PuTTY host key warning does not match EC2 key fingerprint
I rebooted my AWS EC2 instance, and now when I try to connect via SSH or FTP, I get the PuTTY warning about a potential security breach and that the host key doesn't match the one cached in the ...
3
votes
1
answer
832
views
extracting a public key from an Ed25519 private key with OpenSSL?
Ed25519 private keys can be generated by doing openssl genpkey -algorithm ed25519 -outform PEM -out private.pem. My question is... using OpenSSL is there a way to get the public key from the private ...
1
vote
1
answer
185
views
SSH connection with Putty : Server refused our key
I'm having quite a hard time with ssh keys.
To explain the context, I'm trying to ssh my VM (my computer is the client and the VM on it is the server). For now, it works using password authentication ...
0
votes
0
answers
46
views
SSH Login from Termius using HashiCorp Vault's Certificate based Authentication on any Linux Server
Can we able to login to the Linux server with Certificate Based Authentication (which is provided by Hashicorp Vault) through Termius ?
I have a requirement to login through Public key and Private key ...
0
votes
1
answer
44
views
passwd: Authentication token manipulation error using ssh and public key
I'm using ssh and public key (saved in my local computer) to connect to a HPC cluster as follows:
$ ssh -i ~/narvi_key/xenial-narvi-key alijani@narvi.tut.fi
Enter passphrase for key '/home/xenial/...
0
votes
1
answer
92
views
ssh public key authentication with PAM
My Ubuntu servers are using kerberos auth for ssh with password failover using PAM. I'd like to add public key authentication as well. As I read that doesn't really work.
Has anyone implemented this ...
0
votes
0
answers
30
views
SSH connection on a redhat server
I have been struggling for the past few days trying to get an ssh connection working with a public rsa key on a redhat ftp server. I have been following guides such as this one with little luck:https:/...
0
votes
0
answers
295
views
Unable to decrypt TLS data with wireshark
I have recorded some TLS encrypted data with tcpdump. Now, when I open this in Wireshark, I mostly only see gibberish data and I would like to decrypt it, to see what's going on.
I have both, public ...
0
votes
1
answer
542
views
How can I convert my plain text (r,s) signature to a format that openssl can verify?
I have my (r,s) in the following format: ["r","442ca7cb054a9862ed93848cc13e0134968eba79db89e0e6f9ded510149aacd1","s","...
0
votes
0
answers
31
views
How could I do a list from an AWS account listing all running instances?
I'm using AWSCLI at Windows 10 Professional with GitBash. I need to have a list of all running AWS instances by account. Will start doing in an account to make a list to populate the public keys from ...
1
vote
0
answers
419
views
WinSCP PuTTY key format too new [duplicate]
I am trying to connect to my server with WinSCP. I created a key by PuttyGen but when I am trying to connect to it by WinSCP it says that my PuTTY key format too new, Image of the error. Can somebody ...
1
vote
2
answers
6k
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
1
answer
36
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
1
answer
31
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
2
answers
1k
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 ...
1
vote
1
answer
387
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
0
answers
87
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
1
answer
2k
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
0
answers
108
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
1
answer
217
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 ...
1
vote
0
answers
485
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
1
answer
79
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
1
answer
147
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
1
answer
412
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
1
answer
219
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
1
answer
964
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
1
answer
331
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
1
answer
946
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
1
answer
371
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
1
answer
71
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
0
answers
214
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
1
answer
190
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 ...
9
votes
1
answer
10k
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
1
answer
64
views
force scenario about REMOTE HOST IDENTIFICATION HAS CHANGED
everyone know the following message
"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r",
"@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @\r",
"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
3
votes
1
answer
784
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
1
answer
5k
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
0
answers
47
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
0
answers
344
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
1
answer
14k
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
0
answers
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
1
answer
2k
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"
...
6
votes
2
answers
8k
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
1
answer
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 (...
7
votes
3
answers
20k
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
1
answer
69
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
2
answers
50
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
1
answer
807
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
3
answers
15k
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, ...
3
votes
2
answers
5k
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?