Fwd: GPG agent returns subset of keys for SSH

2023-05-15 Thread LuKaRo

Hi,

I want to use gpg-agent to authenticate to an SSH server via key. This 
has previously worked on this machine when I was using a Nitrokey, now I 
imported the key that was on the Nitrokey locally from a backup, and SSH 
authentication no longer works.


ssh - server lists these interesting messages:

debug3: ssh_get_authentication_socket_path: path 
'/run/user/1000/gnupg/S.gpg-agent.ssh'
debug2: get_agent_identities: ssh_agent_bind_hostkey: agent refused 
operation
debug1: get_agent_identities: ssh_fetch_identitylist: agent contains no 
identities


However, gpg --list-secret-keys shows this:

sec   rsa4096 2020-04-07 [SC]
  94B238AAE6682E5063896F2B7920D03B7AA7CD7B
uid   [ultimate] Lu Ro (New general key) 
ssb   rsa4096 2020-04-07 [E]
ssb   rsa4096 2020-04-07 [A]

So the authenticate subkey is indeed present.

I executed ssh-add without arguments, and two keys were added from my 
.ssh directory. Now ssh - shows this:


debug3: ssh_get_authentication_socket_path: path 
'/run/user/1000/gnupg/S.gpg-agent.ssh'
debug2: get_agent_identities: ssh_agent_bind_hostkey: agent refused 
operation

debug1: get_agent_identities: agent returned 2 keys

So communication with the gpg-agent seems to work as well. Any ideas 
what could be the issue?


Thanks in advance,

lukaro

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-users


GPG agent returns subset of keys for SSH

2023-05-15 Thread LuKaRo

Hi,

I want to use gpg-agent to authenticate to an SSH server via key. This 
has previously worked on this machine when I was using a Nitrokey, now I 
imported the key that was on the Nitrokey locally from a backup, and SSH 
authentication no longer works.


ssh - server lists these interesting messages:

debug3: ssh_get_authentication_socket_path: path 
'/run/user/1000/gnupg/S.gpg-agent.ssh'
debug2: get_agent_identities: ssh_agent_bind_hostkey: agent refused 
operation
debug1: get_agent_identities: ssh_fetch_identitylist: agent contains no 
identities


However, gpg --list-secret-keys shows this:

sec   rsa4096 2020-04-07 [SC]
  94B238AAE6682E5063896F2B7920D03B7AA7CD7B
uid   [ultimate] Lu Ro (New general key) 
ssb   rsa4096 2020-04-07 [E]
ssb   rsa4096 2020-04-07 [A]

So the authenticate subkey is indeed present.

I executed ssh-add without arguments, and two keys were added from my 
.ssh directory. Now ssh - shows this:


debug3: ssh_get_authentication_socket_path: path 
'/run/user/1000/gnupg/S.gpg-agent.ssh'
debug2: get_agent_identities: ssh_agent_bind_hostkey: agent refused 
operation

debug1: get_agent_identities: agent returned 2 keys

So communication with the gpg-agent seems to work as well. Any ideas 
what could be the issue?


Thanks in advance,

lukaro


___
Gnupg-users mailing list
Gnupg-users@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: GPGME question about ciphertext and plaintext sizes

2023-05-15 Thread Werner Koch via Gnupg-users
On Wed, 10 May 2023 14:43, Dim Xr said:

> I'm far from a security expert, that's why I needed a more
> higher level solution for this. But definitely I'll give it a shot.

Use DMCrypt under Linux or Veracrypt etc.   Disk encryption is a
complicated matter and you definitley should have some experience in
this area.

> Do you know if OpenSSL is suitable for this task?

The same as Libgcrypt is.


Shalom-Salam,

   Werner

-- 
The pioneers of a warless world are the youth that
refuse military service. - A. Einstein


openpgp-digital-signature.asc
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-users