View previous topic :: View next topic |
Author |
Message |
g0rbe n00b

Joined: 17 Sep 2019 Posts: 13
|
Posted: Wed Nov 13, 2019 11:27 am Post subject: [solved] SSH authetication with GPG |
|
|
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 |
|
 |
g0rbe n00b

Joined: 17 Sep 2019 Posts: 13
|
Posted: Wed Nov 13, 2019 2:02 pm Post subject: |
|
|
My bad!
The solution:
The pinentry-ncurses is not working for me. I switched pinentry-qt. |
|
Back to top |
|
 |
|