# Error when Decrypting Directory

**URL:** https://forum.syncthing.net/t/error-when-decrypting-directory/20582
**Category:** Support
**Created:** [July 26, 2023, 6:53pm UTC](https://forum.syncthing.net/t/error-when-decrypting-directory/20582 "2023-07-26T18:53:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Partlycloudy](https://forum.syncthing.net/user_avatar/forum.syncthing.net/partlycloudy/32/12657_2.png) [@Partlycloudy](https://forum.syncthing.net/u/Partlycloudy)
#### Post date: [July 26, 2023, 6:53pm UTC](https://forum.syncthing.net/t/error-when-decrypting-directory/20582/1 "2023-07-26T18:53:26Z")

</div>

I have an encrypted directory on a server that I’d like to decrypt so I can access saved file versions but despite hours trying, attempts consistently result in an error.

The following command:

syncthing decrypt /home/venue/QuickShare --to=/home/venue/QuickShareD --password=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Results in this error:

syncthing: error: S.syncthing-enc/QU/H2IKIQOHIRFFKMBRR37K45H2304FIU5BHGOJ853PAOK84BSB5B2IH7D21U337O377BNVA4NS389L654IT8EVU0P96HMAVH80VARSH6P5SMU92V2584E21JU6GGRUCUDIEITA5C94H95OEAF33R5U2MJ4BA95CEIIJEJQ70UMDCIG: decrypting metadata: siv: authentication failed

I’ve checked the password by using it to connect to the encrypted share from another device. The data is downloaded and decrypted normally.

OS: Linux Mint 21.1 with all updates

Syncthing version: v1.23.6, Linux (64-bit Intel/AMD)

Perhaps I’m missing something basic, but I cannot figure out what I’m doing wrong.

Any help would be appreciated.

---

<div class="post-metadata">

### Author: ![bt90](https://forum.syncthing.net/user_avatar/forum.syncthing.net/bt90/32/18565_2.png) [@bt90](https://forum.syncthing.net/u/bt90)
#### Post date: [July 26, 2023, 8:35pm UTC](https://forum.syncthing.net/t/error-when-decrypting-directory/20582/2 "2023-07-26T20:35:31Z")

</div>

Could you try it with single-quotes? I’d suspect that bash might interfere here if characters like `$` are involved.

---

<div class="post-metadata">

### Author: ![Partlycloudy](https://forum.syncthing.net/user_avatar/forum.syncthing.net/partlycloudy/32/12657_2.png) [@Partlycloudy](https://forum.syncthing.net/u/Partlycloudy)
#### Post date: [July 27, 2023, 12:12am UTC](https://forum.syncthing.net/t/error-when-decrypting-directory/20582/3 "2023-07-27T00:12:07Z")

</div>

That was the problem. Thanks much!

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [August 26, 2023, 12:12am UTC](https://forum.syncthing.net/t/error-when-decrypting-directory/20582/4 "2023-08-26T00:12:24Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
