📜 ⬆️ ⬇️

Configuring the Overrides URL in Keepass2


Probably everyone already knows that it is always good to have a large and complex password. Many also know about password managers and how convenient, and most importantly, you can safely store information in them.


According to the specifics of my work, I often have to record and store a large number of passwords and other confidential information, so I use Keepass2 , a password manager with a free license. I will not talk about its capabilities and advantages over others, all this has already been discussed more than once. If anyone wants to learn more, here are some links: wiki , review article , comparisons with others: 1 2 .
Instead, I would like to talk about one of his interesting functions:


The function is called "URL Overrides", and it provides the ability to run programs associated with the records and send them authentication data directly from Keepass.


For example, you can keep a list of accounts in keepass for connecting to a remote server, and at a certain moment select the desired one and simply by pressing Ctrl + U, start the remote connection client, and instantly gain access to your server.
This is very convenient, since all logins and passwords are not stored anywhere anymore, but are securely encrypted in your keepass database and transferred to the client program only at the time of connection.


The idea is to use Keepass as a single entry point to all remote servers.


How it works? (GIF 2.4M)

I must admit, initially I planned to write an article just about setting up keepas on Linux, but in the course of writing there was enough material for Windows users.
I decided not to deprive most users of the more popular OS with such amusing material.
For each protocol I specified commands working both under windows and under linux


So let's start:


Creating records


In order for keepass to know which protocol your record corresponds to, you should use links of the form rdp://server , ssh://server , ftp://server


Keepass2 setting


In order for keepass to know which programs need to be run for these protocols, you need to configure a link handler.
To do this, go to Tools --> Options --> Integraion --> URL Overrides... and configure the protocols:


Ssh


[windows] PuTTY



[linux] OpenSSH Client



You also need to install the sshpass package sshpass
Instead of xterm you can substitute your favorite terminal emulator


RDP


[windows] MSTSC



Thanks for the decision thanks to Valiant from bitcollectors.com and DeWhite from habrahabr.ru


[linux] Remmina



VNC


[windows] RealVNC



Save tightvnc-jviewer.jar to C:\Program Files\tightvnc-jviewer.jar .


[linux] Remmina



Samba


[windows] Explorer



[linux] Nautilus / Thunar / Dolphin



FTP


[windows] FileZilla FTP Client



[windows] windows explorer



[linux] FileZilla FTP Client



[linux] Nautilus / Thunar / Dolphin



Teamviewer


[windows] TeamViewer



[linux] TeamViewer



Winbox


[windows] winbox



Save winbox.exe to C:\Program Files (x86)\winbox.exe .


[linux] Winbox



I use the winbox package from AUR .


Cisco


[windows] PuTTY



Conclusion


I think there are plenty of examples. This is probably all.
Now, selecting the desired entry and pressing Ctrl + U, you immediately connect where you want. And you don't have to save passwords anywhere else.
For more exotic cases, you can always write your handler, all you need is to know the launch parameters of the program you need and reflect them in the command.


A couple of related links:



If you have any suggestions / additions write them in comments or on Github .
Thank you for attention.


')

Source: https://habr.com/ru/post/303894/


All Articles