Differences
This shows you the differences between the selected revisions of the page.
| 2026-05-21 | 2026-05-21 | ||
| no summary (martin) | no summary (martin) | ||
| Line 49: | Line 49: | ||
| * When specifying //User name//, use a format ''storage-account-name.username'', where ''username'' is the part of your Azure account username before the ''@'' sign. For example, if your Storage account name is ''winscpstorage'' and your Azure account user name is ''martin@example.com'', then use ''winscpstorage.martin'' for //User name// in WinSCP. | * When specifying //User name//, use a format ''storage-account-name.username'', where ''username'' is the part of your Azure account username before the ''@'' sign. For example, if your Storage account name is ''winscpstorage'' and your Azure account user name is ''martin@example.com'', then use ''winscpstorage.martin'' for //User name// in WinSCP. | ||
| - | * Select both the generated private key and the certificate on the [[ui_login_authentication|//Authentication// page]] in [[ui_login_advanced|advanced site settings]]. | + | * Select both the generated private key and the certificate on the [[ui_login_authentication|//Authentication// page]] in [[ui_login_advanced|advanced site settings]]. As the private key is generated in OpenSSH format, let WinSCP convert the key to PuTTY format. |
| Authenticating with certificate gives you access to all containers to which your Azure account has access to. The SFTP interface lists the containers in the root directory. Unfortunately, it does not list them as folders, so you won't be able to enter them directly with WinSCP. Instead, you can use [[task_navigate#manual|//Open Directory// command]] and type the container name manually. Alternatively, if you disable [[ui_login_directories|//Resolve symbolic links//]] session setting, WinSCP will allow you to enter containers by double-clicking them (even though they still won't look like subfolders in the root directory listing). | Authenticating with certificate gives you access to all containers to which your Azure account has access to. The SFTP interface lists the containers in the root directory. Unfortunately, it does not list them as folders, so you won't be able to enter them directly with WinSCP. Instead, you can use [[task_navigate#manual|//Open Directory// command]] and type the container name manually. Alternatively, if you disable [[ui_login_directories|//Resolve symbolic links//]] session setting, WinSCP will allow you to enter containers by double-clicking them (even though they still won't look like subfolders in the root directory listing). | ||
| - | The certificate is valid for 65 minutes only. For this reason you will likely want to automate the generation. You can use any Azure API, for example the Azure CLI [[https://learn.microsoft.com/en-us/cli/azure/sftp#az-sftp-cert|''az sftp cert'' command]]. | + | The certificate is valid for 65 minutes only. For this reason you will likely want to automate the generation. You can use any Azure API, for example the Azure CLI [[https://learn.microsoft.com/en-us/cli/azure/sftp#az-sftp-cert|''az sftp cert'' command]]. To automate key conversion to PuTTY format, use WinSCP [[commandline#keygen|''/keygen'' commandline]]. |
| + | |||
| + | <code batch> | ||
| + | </code> | ||
| ===== Further reading ===== | ===== Further reading ===== | ||