Skip to main content

Questions tagged [public-key]

The tag has no usage guidance.

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

Rsync to Synology NAS with public key does not work as expected

I know that this question is asked a lot, but none of the answers could help me so far. I am trying to copy files via rsync from an ubuntu server to a Synology nas without a password prompt. I am ...
Jan T.'s user avatar
  • 21
2 votes
4 answers
3k views

Nginx without public certificate

Is there any way that we can configure an Nginx without a public certificate? The objective here is, I want to publish an API on public internet, but all the API client (whitelisted clients) should ...
Rick Brian's user avatar
0 votes
1 answer
2k views

How to convert PEM public key with -----BEGIN PUBLIC KEY----- into openssl key starting with ssh-rsa

How to convert PEM public RSA key in the format: -----BEGIN PUBLIC KEY----- ... -----END PUBLIC KEY----- into openssl format: ssh-rsa AAAAB3NzaC1yc2EAA... Tried openssl rsa -inform PEM -in id_rsa -...
mon's user avatar
  • 180
1 vote
0 answers
59 views

GPG allows importing an invalid secp256k1 public key

I came across a PGP public key that seems invalid. The key is a secp256k1 public key that supported by GPG. In fact, GPG allows importing that key even if it has an invalid secp256k1 public key inside....
Andreas Tzionis's user avatar
1 vote
0 answers
309 views

apt-get update throws error for key in 1 instance but not in second one, both identical

I'm trying to install influxdb in one of my instances, and I went and read many articles, and none of them worked, I went for the official documentation and followed instructions, and they still didn'...
Lauro182's user avatar
3 votes
1 answer
428 views

OpenSSH keys file cannot be UTF-16 formatted - prev: Windows (10) OpenSSH (Microsoft's flavour) refuses to accept all popular Public Key Algorithms

I have been trying to setup an OpenSSH server on Windows 10. The issue is with the Public Keys, password auth works fine. The file permissions for both normal and administrative users are not the ...
grekd's user avatar
  • 71
1 vote
0 answers
93 views

Is there any downside of using for Proxy Jump using Public keys

I am trying to implement a Proxy jump between the client and server. I am going through openssh server 8.9 documentation and did not find much information on usage and future problems using jump host ...
Mallikarjunarao Kosuri's user avatar
0 votes
1 answer
2k views

Public key login to computer with very old openSSH

I use ssh public key to login to a very old Linux machine running OpenSSH 5.9p1, and it's all worked fine for the past decade. Recently, though, I updated my work machine's OS (which is now running ...
Daniel Griscom's user avatar
0 votes
0 answers
99 views

Encrypt using certificate

I have certificate in DER format that according to my understanding contains public key. I need to encrypt symmetric key with certificates public key according to standard at least RSAES-PKCS1-v1_5. ...
vico's user avatar
  • 2,583
0 votes
0 answers
19 views

Problems with "apt update" in Xubuntu 20.04 -- how do I get the public key for cli.gitub.com [duplicate]

I see a problem when I try "apt update" -- here is the output root@camelot-j:/etc/ssh# apt update Ign:1 http://linux.dropbox.com/ubuntu disco InRelease Hit:2 http://linux.dropbox.com/ubuntu ...
4Dummies's user avatar
  • 183
29 votes
7 answers
50k views

Git SSH "permission denied" in macOS 13 Ventura

When I try to authenticate with an RSA SSH key in macOS 13 (Ventura), I get a Permission denied (publickey) error. However, when I use the same command against macOS 12 (Monterrey), it works correctly....
Haozhe Xie's user avatar
  • 1,269
1 vote
0 answers
2k views

How to re-encrypt a Whatsapp db file?

A week ago I decrypted a crypt14 WhatsApp database file using this python script. But I accedientally deleted the original crypt14. Now I want to restore my database. I have a decrypted msgsql.db file....
user avatar
-1 votes
1 answer
1k views

plink - Server refused our key - No supported authentication methods available

I am using a .ppk file with putty to connect to my AWS server. This works with no problems. However, if I try to use the same .ppk file with plink then I get an error: Attempt: "C:\Program Files (...
Black's user avatar
  • 8,101
0 votes
0 answers
1k views

How to fix permission denied publickey on Windows10 Git Bash?

I'm unable to ssh into a machine that operates bots of my friend. He added my public ssh key, so i can join, but I get the permission denied privatkey error message. I removed the actual ip $ ssh -vT ...
Timm's user avatar
  • 1
0 votes
0 answers
949 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 ...
AUser's user avatar
  • 1
1 vote
1 answer
1k 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 ...
hyphen's user avatar
  • 113
11 votes
1 answer
14k 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 ...
neubert's user avatar
  • 7,184
1 vote
1 answer
8k 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 ...
Lunette's user avatar
  • 21
0 votes
0 answers
185 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 ...
MANISH KUMAR SINGH's user avatar
0 votes
1 answer
795 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 [email protected] Enter passphrase for key '/home/xenial/...
doplano's user avatar
  • 103
0 votes
1 answer
1k 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 ...
Sparky's user avatar
  • 1
0 votes
0 answers
142 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:/...
HaydBooksIt's user avatar
1 vote
1 answer
2k 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","...
Felipe Tomao's user avatar
0 votes
1 answer
540 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 ...
Marlon's user avatar
  • 379
1 vote
0 answers
446 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 ...
Hendry de Vries's user avatar
13 votes
2 answers
73k views

How do I use the openssl command to decode a certificate/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 ...
HighAsAKiteOnMath's user avatar
0 votes
1 answer
199 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%/....
Eva's user avatar
  • 1
0 votes
1 answer
159 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 ...
BDR's user avatar
  • 126
0 votes
2 answers
2k 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 ...
J. McNerney's user avatar
2 votes
1 answer
2k 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 ...
SangHak Lee's user avatar
0 votes
0 answers
424 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 ...
AD1234's user avatar
  • 1
0 votes
1 answer
10k 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 ...
Varun Sharma's user avatar
1 vote
0 answers
401 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:...
user388794's user avatar
0 votes
1 answer
452 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 ...
kenzierawr's user avatar
1 vote
0 answers
1k 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 ...
user1452759's user avatar
1 vote
1 answer
299 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 ...
cowlinator's user avatar
1 vote
1 answer
516 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-...
user1161347's user avatar
0 votes
1 answer
2k 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 ...
DannyNiu's user avatar
  • 263
0 votes
1 answer
378 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 ...
Juan I. Morales Pestana's user avatar
1 vote
1 answer
2k 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)...
Tenders McChiken's user avatar
1 vote
1 answer
871 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....
Marlon's user avatar
  • 379
2 votes
1 answer
3k 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 ...
jorge rodriguez's user avatar
0 votes
1 answer
1k 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 ...
PRiM's user avatar
  • 1
1 vote
1 answer
644 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
user avatar
1 vote
0 answers
566 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 ...
abdul rahman taleb's user avatar
1 vote
1 answer
781 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 ...
usoysal's user avatar
  • 11
11 votes
2 answers
61k 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 ...
jww's user avatar
  • 12.2k
0 votes
1 answer
75 views

force scenario about REMOTE HOST IDENTIFICATION HAS CHANGED

everyone know the following message "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r", "@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @\r", "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
King David's user avatar
3 votes
1 answer
2k 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 ...
Vicfred's user avatar
  • 133
1 vote
1 answer
12k 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 ...
yes's user avatar
  • 11