Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] SSH authetication with GPG
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
g0rbe
n00b
n00b


Joined: 17 Sep 2019
Posts: 13

PostPosted: Wed Nov 13, 2019 11:27 am    Post subject: [solved] SSH authetication with GPG Reply with quote

Hi!

I trying to set SSH to use my gpg key for authentication.
I setted up my system based on this: https://opensource.com/article/19/4/gpg-subkeys-ssh
When try to log in i always got an error code:
Code:
sign_and_send_pubkey: signing failed: agent refused operation


gpg-agent.conf:
Code:

default-cache-ttl 300
max-cache-ttl 999999
enable-ssh-support
pinentry-program /usr/bin/pinentry


gpg.conf:
Code:

keyserver hkp://keys.gnupg.net
cert-digest-algo SHA256
no-emit-version
no-comments
personal-cipher-preferences AES AES256 AES192 CAST5
personal-digest-preferences SHA256 SHA512 SHA384 SHA224
ignore-time-conflict
allow-freeform-uid
use-agent


.basrc:
Code:

...
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent


My pinentry is pointing to pinentry-curses
ssh-agent and gnome-keyring is not running.

I successfully installed my gpg key to the server with ssh-copy-id.

Thanks,
g0rbe


Last edited by g0rbe on Wed Nov 13, 2019 2:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
g0rbe
n00b
n00b


Joined: 17 Sep 2019
Posts: 13

PostPosted: Wed Nov 13, 2019 2:02 pm    Post subject: Reply with quote

My bad!

The solution:
The pinentry-ncurses is not working for me. I switched pinentry-qt.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum