A master key with sub keys for signing, encryption and authentication were generated on a Yubikey. Signing and encryption of mails with cleopatra from a Yubikey works fine. However, the authentication key should be used for ssh authentication on a server. The gpg --export-ssh-key 0x....... was downloaded and the public key was set on the server. SSH authentication with that key is possible if the private key was copied to a USB stick and then PuTTY was used. Therefore, SSH is established on the server in the right way. The trouble comes up if the Yubikey should be used for ssh authentication. gpg --card-status show key and all sub-keys on the Yubikey. However, ssh-add -L shows the message: "Error connecting to agent: No such file or directory". My gpg-agent.conf is as follows:
enable-putty-support
enable-ssh-support
default-cache-ttl 120
max-cache-ttl 300