Меню Закрыть

Подключение Yandex.Disk с помощью rclone через WebDAV

Кроме встроенного способа подключения, Яндекс.Диск так же можно подключить по протоколу WebDAV, что может быть альтернативой, если обычным способом не удается настроить подключение

Столкнулся с тем, что встроенным провайдером не удалась подключить Яндекс.Диск, после успешной аутентификации Яндекс выдавал ошибку

Но Яндекс.Диск позволяет получать данные по протоколу WebDAV и этот способ получения доступа рассмотрим ниже

Сначала необходимо получить пароль для сервиса WebDAV, так как это будет не тот пароль, что и от аккаунта

Переходим в раздел Пароли приложений, в списке выбираем тип Файлы

Далее даем произвольное название паролю, например, “Диск”

На следующем шаге будет сгенерирован пароль, который нужно скопировать и сохранить, потому что он показывается единожды и повторно его нельзя будет увидеть и скопировать. Если потеряете, придется создавать новый

Далее настраиваем rclone

rclone config
No remotes found, make a new one?
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n

Enter name for new remote.
name> yandex

Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
...
55 / Uptobox
\ (uptobox)
56 / WebDAV
\ (webdav)
57 / Yandex Disk
\ (yandex)
...
Storage> 56

Вводим url – https://webdav.yandex.ru/

Option url.
URL of http host to connect to.
E.g. https://example.com.
Enter a value.
url> https://webdav.yandex.ru/

Выбираем тип провайдера – другой

Option vendor.
Name of the WebDAV site/service/software you are using.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
1 / Fastmail Files
\ (fastmail)
2 / Nextcloud
\ (nextcloud)
3 / Owncloud
\ (owncloud)
4 / Sharepoint Online, authenticated by Microsoft account
\ (sharepoint)
5 / Sharepoint with NTLM authentication, usually self-hosted or on-premises
\ (sharepoint-ntlm)
6 / rclone WebDAV server to serve a remote over HTTP via the WebDAV protocol
\ (rclone)
7 / Other site/service or software
\ (other)
vendor> 7

Далее вводим пользователя (E-Mail) от учетной записи, например, example@yandex.ru и пароль (drrlszqhofgfepzh), полученный выше (не от аккаунта). При этом пароль не будет отображаться

Option user.
User name.
In case NTLM authentication is used, the username should be in the format 'Domain\User'.
Enter a value. Press Enter to leave empty.
user> example@yandex.ru

Option pass.
Password.
Choose an alternative below. Press Enter for the default (n).
y) Yes, type in my own password
g) Generate random password
n) No, leave this optional password blank (default)
y/g/n> y
Enter the password:
password:
Confirm the password:
password:

Option bearer_token.
Bearer token instead of user/pass (e.g. a Macaroon).
Enter a value. Press Enter to leave empty.
bearer_token>

Edit advanced config?
y) Yes
n) No (default)
y/n>

Configuration complete.
Options:
- type: webdav
- url: https://webdav.yandex.ru/
- vendor: other
- user: example@yandex.ru
- pass: *** ENCRYPTED ***
Keep this "yandex" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y

Current remotes:

Name Type
==== ====
yandex webdav

Настройка закончена, теперь можно проверить подключение

rclone about yandex:
Total:   1.051 TiB
Used: 93.686 GiB
Free: 982.314 GiB
Подписаться
Уведомить о
guest
0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии