Differences
This shows you the differences between the selected revisions of the page.
integration_keepass 2023-01-10 | integration_keepass 2023-01-17 (current) | ||
Line 21: | Line 21: | ||
<code> | <code> | ||
- | cmd://"{ENV_PROGRAMFILES_X86}\WinSCP\WinSCP.exe" {BASE:SCM}://{USERNAME}:{PASSWORD}@{BASE:HOST}:{T-REPLACE-RX:/{BASE:PORT}/-1//}{BASE:PATH} {T-CONV:`{T-REPLACE-RX:|{BASE:QUERY}|^\?||}`Uri-Dec`} | + | cmd://"{ENV_PROGRAMFILES_X86}\WinSCP\WinSCP.exe" {BASE:SCM}://{USERNAME}:{PASSWORD}@{BASE:HOST}:{T-REPLACE-RX:/{BASE:PORT}/-1//}{BASE:PATH} |
</code> | </code> | ||
The ''%%{T-REPLACE-RX:/{BASE:PORT}/-1//}%%'' is a workaround for KeePass resolving the ''{BASE:PORT}'' placeholder to ''-1'', when a password entry //%%URL%%// field does not specify the port explicitly and KeePass does not know the protocol (such as ''sftp'') to substitute a standard port. | The ''%%{T-REPLACE-RX:/{BASE:PORT}/-1//}%%'' is a workaround for KeePass resolving the ''{BASE:PORT}'' placeholder to ''-1'', when a password entry //%%URL%%// field does not specify the port explicitly and KeePass does not know the protocol (such as ''sftp'') to substitute a standard port. | ||
- | |||
- | The ''%%{T-CONV:`{T-REPLACE-RX:|{BASE:QUERY}|^\?||}`Uri-Dec`}%%'' to pass ''{BASE:QUERY}'' to WinSCP.exe as parameters. | ||
See KeePass documentation for [[https://keepass.info/help/base/placeholders.html|placeholders]]. | See KeePass documentation for [[https://keepass.info/help/base/placeholders.html|placeholders]]. | ||
Repeat override definition for each protocol you want to use with WinSCP (''sftp'', ''ftp'', ''ftps'', ''ftpes'', ''scp'', ''http'', ''https''). If you want to use [[webdav|WebDAV]] sessions, but you want to keep ''http'' protocol reserved for a web browser, you can use [[integration_url#winscp|WinSCP-specific protocol]] ''winscp-http''. | Repeat override definition for each protocol you want to use with WinSCP (''sftp'', ''ftp'', ''ftps'', ''ftpes'', ''scp'', ''http'', ''https''). If you want to use [[webdav|WebDAV]] sessions, but you want to keep ''http'' protocol reserved for a web browser, you can use [[integration_url#winscp|WinSCP-specific protocol]] ''winscp-http''. | ||
+ | |||
+ | //For improvements that allow passing additional parameters to WinSCP, see [[https://github.com/abakum/KeePassURLOverride|KeePassURLOverride project]].// | ||
===== Opening URL/Site ===== | ===== Opening URL/Site ===== | ||
Line 43: | Line 43: | ||
For best security, it is good practice to limit how many processes you trust to securely handle your sensitive data. For this reason, we recommend you manage your sites on WinSCP [[ui_login|Login window]] and use a strong WinSCP [[master_password|master password]] to protect them. | For best security, it is good practice to limit how many processes you trust to securely handle your sensitive data. For this reason, we recommend you manage your sites on WinSCP [[ui_login|Login window]] and use a strong WinSCP [[master_password|master password]] to protect them. | ||
- | |||
- | For this on %%URL%% Override window, to //Scheme// field, enter ''winscp''. In //%%URL%% Override// field, enter: | ||
- | |||
- | <code> | ||
- | cmd://"{ENV_PROGRAMFILES_X86}\WinSCP\WinSCP.exe" {USERNAME}@{BASE:HOST}{BASE:PATH} {T-CONV:`{T-REPLACE-RX:|{BASE:QUERY}|^\?||}`Uri-Dec`} | ||
- | </code> | ||
- | |||
- | The ''%%{USERNAME}@{BASE:HOST}%%'' to pass to WinSCP.exe not as URL, but as previously configured Site. |