# Stopping/Resetting SCDAEMON¶

There is a daemon named scdaemon behind gpg-agent, which handles communication to smartcard/token.

Ideally, we don’t need to care about scdaemon, and it should handle everything automatically. But, there are some cases (because of bugs), where we need to talk to the daemon directly, in practice.

## How to communicate SCDAEMON¶

We have a utility to communicate with a running gpg-agent, that’s gpg-connect-agent. We can use it to communicate with scdaemon, as it supports sub-command “SCD”, exactly for this purpose.

## Stopping SCDAEMON¶

To stop SCDAEMON and let it exit, type: