Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement KeePass' Global URL Overrides feature #10887

Open
taurus227 opened this issue Jun 12, 2024 · 0 comments
Open

Implement KeePass' Global URL Overrides feature #10887

taurus227 opened this issue Jun 12, 2024 · 0 comments

Comments

@taurus227
Copy link

taurus227 commented Jun 12, 2024

Summary

Implement the Global URL Overrides feature of KeePass 2.x, that allows the user to define a command line template (with placeholders) for each URL Scheme.
This would enable the user to double-click URLs with schemes like ssh://, vpn:// , ftp:// etc. and have them open in the appropriate app with the username, password, IP address, port etc. properly transferred on the command line.

Examples

If the following is defined on Windows:

URL Overrides

Scheme Template
ssh: sh cmd://"C:\Program Files (x86)\Mobatek\MobaXterm\MobaXterm.exe" -newtab "sshpass -p '{PASSWORD}' ssh {USERNAME}@{URL:HOST} -p {T-REPLACE-RX:/{URL:PORT}/-1/22/}"

the KeePass entry can simply store the following:

  • Username: username
  • Password: password
  • URL: ssh://domain:port

Double-clicking the URL will open a MobaXTerm window and connect to the host at the given port (if given, otherwise port 22), logging in with the stored username and password.

Context

Implementing the Global URL Overrides feature inside KeePassXC would make this feature platform-independent, the same URL would work on Linux, Windows and MacOS, as long as the URL Overrides are defined properly on each platform. This would allow the same KeePass database to be shared between all three platforms!

There is a workaround on Windows 11, and also on Linux, but these are platform-dependent.
For Windows 11 the KeePass entry should contain:

  • Username: username@host -p port
  • Password: password
  • URL: cmd://"C:\Program Files (x86)\Mobatek\MobaXterm\MobaXterm.exe" -newtab "sshpass -p '{PASSWORD}' ssh {USERNAME}"

Reference

The documentation for the Global URL Overrides feature is here:

@taurus227 taurus227 changed the title Implemnt KeePass' Global URL Overrides feature Implement KeePass' Global URL Overrides feature Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant