# Can't authenticate with app password Hub 6

**URL:** <https://help.nextcloud.com/t/cant-authenticate-with-app-password-hub-6/175572>\
**Category:** ℹ️ Support\
**Created:** [December 1, 2023, 5:53pm UTC](https://help.nextcloud.com/t/cant-authenticate-with-app-password-hub-6/175572 "2023-12-01T17:53:38Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![bennypr0fane](https://help.nextcloud.com/letter_avatar/bennypr0fane/32/6_22734026db12803ebb3e059622ac3534.png) [@bennypr0fane](https://help.nextcloud.com/u/bennypr0fane)\
**Post date:** [December 2, 2023, 11:05pm UTC](https://help.nextcloud.com/t/cant-authenticate-with-app-password-hub-6/175572/3 "2023-12-02T23:05:27Z")

</div>

1. To connect to the share with KDE Dolphin, I did this:  
 ![NC-Screenshot_20231202_233801](https://help.nextcloud.com/uploads/default/original/3X/b/7/b735e9b897d54dff4a58d26b3fc394d476b1b4db.png)

The answer then is this:

 ![Screenshot_20231202_233910](https://help.nextcloud.com/uploads/default/original/3X/f/1/f124431e856faa977dda00a61857909608a1240a.png)  
Meaning basically “Cannot connect to server. Check your settings and try again”. The reason I’m sure the settings are correct is because the server sends me a login prompt. The reason I think it rejects my password is as follows:

1. To mount the share in `/etc/fstab` I pretty much followed [the official documentation](https://docs.nextcloud.com/server/stable/user_manual/en/files/access_webdav.html#creating-webdav-mounts-on-the-linux-command-line) ([the Dolphin part](https://docs.nextcloud.com/server/stable/user_manual/en/files/access_webdav.html#accessing-files-with-kde-and-dolphin-file-manager) is a bit outdated) exactly:

My `fstab` entry looks like this:

```auto
https://my.nextcloudinstance.eu/remote.php/dav/files/bennypr0fane/ /home/ben/nextcloudinstance.eu-Nextcloud davfs user,rw,auto 0 0

```

where `/home/ben/nextcloudinstance.eu-Nextcloud` is the mountpoint.  
In the `~/.davfs2/secrets` file I used the `$PathToMountPoint $USERNAME $PASSWORD` syntax, so like `/home/ben/nextcloudinstance.eu-Nextcloud bennypr0fane myverystrongpassword`

After setting it up, trying to mount it goes like this:

```auto
~$ mount /home/ben/nextcloudinstance.eu-Nextcloud
das Einhängen schlug fehl; //failed to mount
Could not authenticate to server: rejected Basic challenge

```

So, that’s why I believe NC is rejecting my password.  
This is a password I generated in Personal Settings \> Security \> Devices & Sessions by pressing the “Create new app password” button.

As mentioned, I tried it a couple times with fresh passwords on two different devices, same result. Also, I found [this very similar issue (unsolved)](https://help.nextcloud.com/t/app-passwords-not-working-2fa-enabled/163332), albeit on an older NC version (20)

What do you think would be the problem?

---

_[View the full topic](https://help.nextcloud.com/t/cant-authenticate-with-app-password-hub-6/175572)._
