You are not logged in.

#1 2016-05-05 15:09:42

Majzlik
Member
Registered: 2015-10-03
Posts: 20

GnuPG - can export key but can't add to SSH

Hi,
I got strange issue. I generated private + public key pair and I want to force SSH use it. Strange thing is I can encrypt/ decrypt files, export keys using my passphrase but I can't add it using ssh-add or config file. SSH refuses to accept that key because of bad passphrase, but I'm pretty sure the passphrase is correct. Any idea what happens?
Thx,
Majzlik

Offline

#2 2016-05-05 15:16:42

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: GnuPG - can export key but can't add to SSH

I don't believe one can use a GPG key as an SSH key.
You can manage a key generated by ssh using https://wiki.archlinux.org/index.php/GnuPG#SSH_agent

Edit: Apparently I was wrong: http://budts.be/weblog/2012/08/ssh-auth … ur-pgp-key

Last edited by ewaller (2016-05-05 15:18:14)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2016-05-05 15:23:02

Majzlik
Member
Registered: 2015-10-03
Posts: 20

Re: GnuPG - can export key but can't add to SSH

I found that SSH agent, but it requires passphrase for key I'm trying to add and it still ends up with "bad passphrase" error.

ewaller wrote:

I don't believe one can use a GPG key as an SSH key.
You can manage a key generated by ssh using https://wiki.archlinux.org/index.php/GnuPG#SSH_agent

Edit: Apparently I was wrong: http://budts.be/weblog/2012/08/ssh-auth … ur-pgp-key

Offline

Board footer

Powered by FluxBB