Questions tagged [private-key]
170 questions
11
votes
3 answers
SSH does not allow the use of a key with group readable permissions
I have a development git server that deploys to a live server when the live branch is pushed to.
Every user has their own login and therefore the post-receive hook which does the live deployment is run under their own user.
Because I don't want to…

Jessie
- 213
- 1
- 2
- 6
10
votes
1 answer
ssh - Why isn't it trying my private key?
I'm trying to connect to a remote SSH server using a private key at ~/.ssh/id_rsa. When I ssh -v to the server I get the following:
...
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1:…

Martin
- 226
- 1
- 2
- 7
10
votes
8 answers
Ssh key accepted by host but client disconnect
Helo,
I have a problem with SSH after fedora 23 installation.
When i wan't to connect to my remote host with private key my host find the key :
debug1: matching key found: file /home/theo/.ssh/authorized_keys, line 1 RSA {REDACTED}
debug1:…

Preovaleo
- 109
- 1
- 1
- 4
10
votes
2 answers
How does changing a GPG encryption key's passphrase work?
I know that I can do (edit: fixed this; I'm interested in gpg NOT openssh)
gpg --edit-key
...to change my passphrase for my key, but I'm not sure what this means.
If I'm encrypting data on box A and decrypting on box B (say with duplicity) do I…

jberryman
- 914
- 2
- 10
- 25
9
votes
1 answer
Can I get anSHA-256 certificate when the CSR is for SHA-1?
I've read:
By default, OpenSSL cryptographic tools are configured to make SHA1 signatures.
for example, if you want to generate a SHA256-signed certificate request (CSR) , add in the command line: -sha256
I was required to upgrade an existing…

joshua.paling
- 1,225
- 2
- 11
- 13
9
votes
4 answers
What does this ssh error mean?
This is my last resort. I've been trying to figure out the problem here for hours.
Here's the deal: I have copied my private key from machine #1 onto machine #2. Machine #1 is able to connect via ssh to a server with my public key just fine, but…

kevin
- 91
- 1
- 1
- 3
8
votes
3 answers
How do I setup sshd to require both a private key and a password?
How do I setup sshd to require both a private key and a password?
In /etc/ssh/sshd_config, I currently have:
RSAAuthentication yes
PubkeyAuthentication yes
PasswordAuthentication yes
But apparently this allows a user to login using either a private…

ryanprayogo
- 191
- 1
- 1
- 6
8
votes
2 answers
Entering Private Key Passphrase with Putty Command Line PSFTP.exe
I'm using psftp.exe to automate a file download but need to connect with a private key as explained below. I am able to connect, however, the private key requires a Passphrase.
This procedure works but I have to enter the Passphrase from the…

Eric
- 83
- 1
- 1
- 3
8
votes
5 answers
Recover an SSH private key?
I have an RSA key (generated by PuTTYgen) that's set up for logging in to a bunch of machines via SSH. Or rather, i HAD such a key. (The computer it was on crashed, to the point that a reinstall of XP was required. The private key file is…

cHao
- 473
- 1
- 3
- 10
7
votes
0 answers
haproxy ssl password protected private key
Usage: Haproxy as SSL termination
Requirement: Our private keys are password protected and we are not allowed to remove the password for the private key
Problem:
If i run the following command haproxy -f /pathtoconf a password prompt is shown and…

Naresh
- 71
- 1
- 2
7
votes
1 answer
Packer won't correctly use private key for SSH auth in provisioning step
I use Packer to build VirtualBox images, with the Ansible provisioner to set up the images. The builder step creates a temporary user (ssh_username and ssh_password). The Ansible provisioner runs using this temporary user. I, of course, want to get…

siride
- 569
- 2
- 8
- 18
7
votes
2 answers
How to find out if an OpenSSL certificate was created by a certain private key?
I have an OpenSSl certificate. I also need the private key. I was told it is located somewhere on the server, and true enough, I found multiple SSL key files.
Before I try them all by brute force: Is there a way I can find out on terminal if a…

k0pernikus
- 4,170
- 4
- 17
- 17
6
votes
2 answers
How to make in SSH private key from one line, three lines
i have ssh-key, something like this
-----BEGIN RSA PRIVATE KEY----- my_super_secret_password -----END RSA PRIVATE KEY-----
Of course this key does not work. When i am doing manual things, something, like this
-----BEGIN RSA PRIVATE KEY-----…

Piduna
- 541
- 4
- 12
- 25
6
votes
2 answers
Easy multi-level authentication for sudo
I have a FreeBSD server with password-based SSH enabled. I would like to enable sudo, but I do not want a potential attacker to be one password away from root access. My current solution is logging in as root using a public key (remote password…

Michael Ekstrand
- 253
- 2
- 8
6
votes
2 answers
Passing a private key to scp from the command line instead of a file
Is there a way to pass the contents of a private key directly to the scp command instead of having to copy it to a file and pointing at it via the -i /path/to/key.pem option?
So instead of doing:
scp -i key.pem source target
Can I do something like…

Julian
- 545
- 3
- 6
- 16