Questions tagged [private-key]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
0
votes
0answers
16 views

SCEP Enrollment with Private Key

I am going for PKI Enrollment with https and 443 based on SCEP & HTTP Protocols. I have generated a Public and Private Key Pair to create CSR. I embedded this Public Key inside CSR with other ...
0
votes
0answers
25 views

gpg not listing secret key - key lost?

So I'm running kali linux in a vm. Until a couple of days ago, decrypting with my secret key worked just fine. But since then my key appears to suddenly have gone missing. Neither gpg --list-keys nor ...
1
vote
1answer
49 views

Generating private+public keypair for SSH: difference between ssh-keygen and openssl?

I want to create private and public key pairs to be used for SSH authentication. I can't figure out the difference between this: openssl genrsa -out MyPrivateKey 4096 openssl rsa -in MyPrivateKey -...
2
votes
2answers
211 views

How to revoke a GPG Key and upload in GPG server?

I have create GPG Keys for code signing and created a revocation certificate also. As far as I know, if key is compromised then i can revoke the key using revocation certificate. Can someone suggest ...
0
votes
1answer
66 views

How to configure Fail2ban with private key ssh connection on CentOs 7

I tried to install Fail2ban on my Centos 7 machine to prevent force brute connection on ssh server. I'm using a private key with a passphrase to connect. I tested Fail2ban but it doesn't block me ...
1
vote
1answer
570 views

How to quickly identify SSH private key file formats?

Triggered today by Remote Desktop Manager, whose SSH Key Generator offered to save a private key in OpenSSH format, but then proceeded to store it in PKCS#1 / OpenSSL format, while using the same ...
0
votes
1answer
94 views

Is the role of public key/private key determined arbitrarily or mathematically?

I have read about conflicting information about the roles of public/private keys. In one article(Asymmetrical-key algorithms), it says: Simply put each party, say Alice, picks a private random ...
0
votes
1answer
95 views

Unprotected Private Key File

I have an Amazon EC2 instance that I have been using to learn networking concepts on, today I tried to connect via SSH and was prompted with the following error. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
0
votes
1answer
228 views

How to configure Tomcat to use SSL encryption with the private key stored on a remote server?

I want to know if there is a way to configure Tomcat server.xml to use the SSL encryption with a private key stored remotely on a server I can imagine the server configuration would be something like ...
1
vote
0answers
30 views

How do I manually connect to a WPA2 EAP-TLS school network using cloudpath on linux?

I’ve been trying to join my school’s wifi network with little success. Our school uses Cloudpath Enrollment System (used to be called Xpressconnect or something). All devices have to install and run ...
0
votes
0answers
15 views

Install SSL for a site in IIS 8 when you have a certificate.txt file and private key file

I have two files. 1. File whose contents start with -----BEGIN CERTIFICATE REQUEST----- 2. File whose contents start with -----BEGIN PRIVATE KEY----- How do I use these two files to create a SSL for ...
3
votes
1answer
940 views

How to convert an existing private key into ppk format using ssh-keygen?

I have a private key private.key) in format -----BEGIN RSA PRIVATE KEY-----IEpAIBAAKCAQEAvKwuhMiQR/THmjK.....-----END RSA PRIVATE KEY-----, and I am trying to convert it in the format that putty (.ppk)...
1
vote
1answer
2k views

“Unprotected private key file” when accessing a private key on volume in Docker Windows host

Private key is mounted using volume in docker container. Permissions on the host system (Windows) are defined as -r--r--r--. But when i run compose file get this error "Permissions 0755 for '/root/....
1
vote
0answers
126 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 (...
4
votes
1answer
3k views

PSFTP connection using key authentication

Using PuTTY to SSH onto server. But can't work out how to connect to SFTP. Private key is on a USB, maybe that's where I'm going wrong !? I have tried various ways e.g. PSFTP, but can't really find ...
2
votes
1answer
98 views

Using encrypted SSH key generated by PuTTYgen when connecting via SSH with PuTTY

I generated my public/private key couple with PuTTYgen, and now I want to use them to connect to a remote Linux host via SSH. However, PuTTYgen prompted me to save the private key "with a password" (I ...
0
votes
1answer
442 views

How to use ssh_config with matches for users

I'm trying to configure my ssh_config (CLIENT) to use different keyfiles depending on the user for the same host, but unable to make it work. What is wrong? It says bad arument Host myServer ...
0
votes
0answers
36 views

Is there a maximum number of subkeys in GnuPG?

The GnuPG documentation describes a process to generate subkeys for a gpg-master-key with the option to have different validity settings for subkeys. This works perfectly for a small amount of subkeys,...
-1
votes
1answer
79 views

Cant use openssh on windows with key authentication

I can't use my private key (i disabled password auth entirely) because Of "bad permissions" C:\Users\Patron>ssh -i C:\Users\Patron\id_rsa -p 993 root@my.ip.goes.here @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
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 ...
0
votes
1answer
621 views

PuTTY ssh tunnel port forwarding through management server with private key

I'll try to be as detailed as possible. I try to connect to a server running ActiveMQ and want to forward the port 8161 to port 8162 on my local machine in order to prevent problems when I run a ...
2
votes
1answer
300 views

SFTP to remote server

So I'm trying to SFTP to a server that has been set up by an external company for sending shipping data. I have a username, a host and a private key file. I can use WinSCP on my Windows 10 Machine ...
0
votes
0answers
525 views

Error: Disconnected: No supported authentication methods available (server sent: publickey) on mac using filezilla

first I'll point out that I do not have much experience using SFTP to connect to a server and using public and private keys. So please, answer assuming that I know nothing about what you're talking ...
2
votes
1answer
1k views

Windows 10 ssh, Load Key : Operation not permitted

I have a private ssh key generated by PuTTYgen, placed in C:/Users/my_user/.ssh/id_rsa. When I ssh to the remote host, Windows complain: Why is the Operation not permitted? per comment request, the ...
0
votes
1answer
630 views

Able to decrypt previously encrypted messages without passphrase, but can't export GPG private key

I feel really stupid asking this, but why not. I have a bunch of files I encrypted a while ago with a gpg key pair that is password protected. Since then, I've forgotten the password. But the key must ...
1
vote
1answer
744 views

fail2ban SSH with no password authentication

When I have disabled SSH password authentication, so we can only login using private key authentication, is there still a point in having fail2ban running for SSH brute force protection? I'm thinking ...
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 ...
2
votes
1answer
1k views

ssh using private pem file asking for password in server (not passphrase)

I am trying to connect to a server using private pem file that I created. It was created using a passphrase that I know. It is asking for my password for the remote server, which I do not have. I ...
-1
votes
1answer
53 views

How do I clone a private key on Windows?

I have a remote server on a computer with Windows 8, using the program WinSCP to access. I want to access the server from another computer. The situation is I have not the password, so I want to know, ...
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 ...
1
vote
1answer
4k views

How to define ssh private key location

I know that you can globally set per users authorized key files with this line inside /etc/ssh/sshd_config: AuthorizedKeysFile /etc/ssh/authorized_keys.d/%u Is it possible to do something similar ...
0
votes
1answer
4k views

User Certificate's show “Cannot find the certificate and private key for decryption.” in Windows

Have a number of computers where user certificates suddenly stop working. Running certutil -silent -user -store my shows that all user certificates for the affected user have stopped working. my ...
0
votes
1answer
615 views

Unable to start Apache on CentOS SSL Issue

I am unable to start Apache on a CentOS Server with SELinux. The error log gives. [root@server httpd]# cat test-error_log [Wed Nov 15 05:42:34 2017] [error] Init: Private key not found [Wed Nov 15 05:...
0
votes
1answer
2k views

sFtp with key authentication prompts password

A newbie about sFtp and and authentication via key files. Here is my problem; 1- I have an .p12 certificate(provided by the host owner); which I used openssl to extract my private key(.pem) file out ...
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 ...
-1
votes
1answer
2k views

Server connection authentication error

I use the digitalocean server and the ssh key authentication. Of late my filezilla keeps giving me authentication error. The error message is Error: Disconnected: No supported authentication methods ...
0
votes
2answers
4k views

WinSCP: Server refused key - But same key accepted from Putty?

I try to connect to a server using WinSCP and I authenticate with a private key. This works fine if I use Putty, but the same key is refused when I try it with WinSCP. The only thing I did, was to ...
0
votes
1answer
1k views

Vagrant ssh : Puttygen can't generate ssh-2rsa key in Windows

I am trying to build a linux server with vagrant in Windows 8.1 but it fails to ssh so I tried to set up ssh connection with putty by following the instruction here: http://tech.osteel.me/posts/2015/...
-1
votes
1answer
274 views

StartSSL Class 1 Client cert missing private key in Keychain Access?

I have been using Class 1 Client Certificates from StartSSL for a while now (in OS X to sign my emails via S/MIME). I went to renew yesterday and I received my new cert. However, I am unsure how to ...
1
vote
0answers
330 views

sftp connection too many publickey verification attempts were made error

I'm trying to do a sftp connection. The destination uses public key + password authentication, and port 2222. I was able to connect from our existing linux host to the destination. Our existing linux ...
1
vote
0answers
185 views

How to analyze and fix a broken private PGP key?

I have 2 sets of keys on my Windows 7 system with GPG4Win tools installed (including Kleopatra key management) and 2 Enigmail-based email clients (Thunderbird + Seamonkey) and Claws, which uses an own ...
7
votes
3answers
19k views

How to ssh from one ec2 instance to another?

I have created two EC2 instances on AWS. I created a key pair for each of them. I downloaded the .pem private keys and converted them into .ppk format. I can connect to each of my ec2 instances using ...
0
votes
0answers
36 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 ...
7
votes
1answer
2k views

How to add multiple PGP keys to my keybase ID?

I am using keybase and I try to add to add a secondary PGP key to my ID. However, when I try to select a key from my local keyring, I get the following message. ~ $ keybase pgp select ▶ ERROR You ...
25
votes
4answers
16k views

How do you safely backup a GPG private key?

I found a very interesting CLI password manager called pass. To use it, you generate a GPG2 key pair, and use the tool to help you store passwords in gpg2 encrypted files. To encrypt the files (add a ...
1
vote
1answer
4k views

WinSCP Commandline Private key

What I am trying to so is: Open a WInSCP-Session using a private key instead of a password. The simple Password-Approach works: WinSCP.exe root:password@example.com But the next step, using the ...
1
vote
3answers
199 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
2k 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 ...
1
vote
0answers
59 views

After working good half a year ago, ssh into ubuntu server fails “Server refused our key”

During last summer I installed a ubuntu server 14.04 and used PuTTY with ssh to access it. I saved the public and private key on a backup. Since then i installed a clean windows 10 on the pc i used to ...