{"id":35292,"date":"2025-11-28T00:41:30","date_gmt":"2025-11-27T21:41:30","guid":{"rendered":"https:\/\/fatihsoysal.com\/blog\/?p=35292"},"modified":"2025-11-28T00:41:30","modified_gmt":"2025-11-27T21:41:30","slug":"how-to-use-kpcli-to-manage-keepass2-password-files-on-an-ubuntu-14-04-server","status":"publish","type":"post","link":"https:\/\/fatihsoysal.com\/blog\/how-to-use-kpcli-to-manage-keepass2-password-files-on-an-ubuntu-14-04-server\/","title":{"rendered":"How To Use kpcli To Manage KeePass2 Password Files on an Ubuntu 14.04 Server"},"content":{"rendered":"<p><body><\/p>\n<h2>Giri\u015f<\/h2>\n<p>G\u00fcn\u00fcm\u00fcz siber d\u00fcnyas\u0131nda \u015fifre y\u00f6netimi, hem bireysel kullan\u0131c\u0131lar hem de sunucu ortamlar\u0131 i\u00e7in kritik bir \u00f6neme sahiptir. KeePass, g\u00fc\u00e7l\u00fc \u015fifreleri g\u00fcvenli bir \u015fekilde depolamak i\u00e7in pop\u00fcler, a\u00e7\u0131k kaynakl\u0131 ve platformlar aras\u0131 bir \u015fifre y\u00f6neticisidir. Genellikle grafik aray\u00fczl\u00fc masa\u00fcst\u00fc uygulamalar\u0131yla bilinse de, ba\u015fs\u0131z (headless) sunucular gibi GUI&#8217;nin olmad\u0131\u011f\u0131 ortamlarda KeePass veritabanlar\u0131n\u0131 y\u00f6netmek \u00f6zel bir yakla\u015f\u0131m gerektirir.<\/p>\n<p>\u0130\u015fte tam da bu noktada <code>kpcli<\/code> (KeePass Command Line Interface) devreye girer. <code>kpcli<\/code>, KeePass 2.x (.kdbx) format\u0131ndaki \u015fifre dosyalar\u0131n\u0131 komut sat\u0131r\u0131ndan y\u00f6netmenize olanak tan\u0131yan g\u00fc\u00e7l\u00fc bir ara\u00e7t\u0131r. Bu rehber, \u00f6zellikle Ubuntu 14.04 sunucusu \u00fczerinde <code>kpcli<\/code> kurulumunu ve kullan\u0131m\u0131n\u0131 ad\u0131m ad\u0131m a\u00e7\u0131klayarak, sunucu ortam\u0131n\u0131zda \u015fifrelerinizi g\u00fcvenle y\u00f6netmenize yard\u0131mc\u0131 olmay\u0131 ama\u00e7lamaktad\u0131r. Eski bir i\u015fletim sistemi olan Ubuntu 14.04&#8217;te bile bu arac\u0131 nas\u0131l etkin bir \u015fekilde kullanabilece\u011finizi \u00f6\u011freneceksiniz.<\/p>\n<p>Bu rehberde, <code>kpcli<\/code>&#8216;nin kurulumundan KeePass veritaban\u0131n\u0131z\u0131 a\u00e7maya, yeni giri\u015fler eklemeye, mevcut giri\u015fleri d\u00fczenlemeye ve silmeye kadar temel i\u015flemleri ele alaca\u011f\u0131z. Ayr\u0131ca, sunucu ortam\u0131nda pratik kullan\u0131m senaryolar\u0131 ve g\u00fcvenlik ipu\u00e7lar\u0131 hakk\u0131nda da bilgiler sunaca\u011f\u0131z.<\/p>\n<h2>kpcli Kurulumu<\/h2>\n<p><code>kpcli<\/code> bir Perl beti\u011fi oldu\u011fundan, \u00f6ncelikle Perl ve gerekli ba\u011f\u0131ml\u0131l\u0131klar\u0131n sisteminizde kurulu olmas\u0131 gerekmektedir. Ubuntu 14.04 \u00fczerinde bu kurulumu ad\u0131m ad\u0131m ger\u00e7ekle\u015ftirece\u011fiz.<\/p>\n<h3>Ba\u011f\u0131ml\u0131l\u0131klar\u0131n Y\u00fcklenmesi<\/h3>\n<p>\u0130lk olarak, sisteminizin paket listesini g\u00fcncelleyelim ve <code>kpcli<\/code>&#8216;nin ihtiya\u00e7 duyaca\u011f\u0131 temel Perl mod\u00fclleri ile derleme ara\u00e7lar\u0131n\u0131 kural\u0131m. <code>libssl-dev<\/code> paketi, <code>Net::SSLeay<\/code> gibi SSL ile ilgili Perl mod\u00fcllerinin derlenmesi i\u00e7in gereklidir.<\/p>\n<pre><code class=\"language-bash\">sudo apt-get update\nsudo apt-get install -y perl build-essential libssl-dev<\/code><\/pre>\n<h3>cpanminus ile kpcli Kurulumu<\/h3>\n<p><code>kpcli<\/code> ve onun temel ba\u011f\u0131ml\u0131l\u0131\u011f\u0131 olan <code>KeePass::CLI<\/code> mod\u00fcl\u00fcn\u00fc kurman\u0131n en kolay ve g\u00fcvenilir yolu <code>cpanminus<\/code> kullanmakt\u0131r. <code>cpanminus<\/code>, CPAN (Comprehensive Perl Archive Network) mod\u00fcllerini kolayca kurman\u0131z\u0131 sa\u011flayan hafif bir ara\u00e7t\u0131r.<\/p>\n<p>\u00d6ncelikle <code>cpanminus<\/code>&#8216;\u0131 kural\u0131m:<\/p>\n<pre><code class=\"language-bash\">curl -L https:\/\/cpanmin.us | perl - --sudo App::cpanminus<\/code><\/pre>\n<p>Bu komut, <code>cpanminus<\/code> beti\u011fini indirir ve sistem genelinde (<code>--sudo<\/code> ile) kurar. Kurulumdan sonra, <code>cpanm<\/code> komutunu kullanarak <code>App::kpcli<\/code> paketini ve t\u00fcm ba\u011f\u0131ml\u0131l\u0131klar\u0131n\u0131 kurabiliriz:<\/p>\n<pre><code class=\"language-bash\">sudo cpanm App::kpcli<\/code><\/pre>\n<p>Bu i\u015flem biraz zaman alabilir, \u00e7\u00fcnk\u00fc <code>KeePass::CLI<\/code> ve di\u011fer \u015fifreleme ile ilgili Perl mod\u00fcllerini derleyip kuracakt\u0131r. Kurulum tamamland\u0131\u011f\u0131nda, <code>kpcli<\/code> komutu art\u0131k sisteminizde kullan\u0131labilir olacakt\u0131r.<\/p>\n<p>Kurulumun ba\u015far\u0131l\u0131 olup olmad\u0131\u011f\u0131n\u0131 kontrol etmek i\u00e7in:<\/p>\n<pre><code class=\"language-bash\">kpcli --version<\/code><\/pre>\n<p>Bu komut <code>kpcli<\/code>&#8216;nin s\u00fcr\u00fcm numaras\u0131n\u0131 g\u00f6stermelidir.<\/p>\n<h2>KeePass Veritaban\u0131na Eri\u015fim ve Temel Kullan\u0131m<\/h2>\n<p><code>kpcli<\/code> ba\u015far\u0131yla kurulduktan sonra, KeePass veritaban\u0131 (.kdbx) dosyalar\u0131n\u0131za eri\u015fmeye ba\u015flayabiliriz.<\/p>\n<h3>Veritaban\u0131 A\u00e7ma<\/h3>\n<p>Bir KeePass veritaban\u0131 dosyas\u0131n\u0131 a\u00e7mak i\u00e7in <code>kpcli<\/code> komutunu <code>-f<\/code> veya <code>--file<\/code> parametresiyle kullanmal\u0131s\u0131n\u0131z:<\/p>\n<pre><code class=\"language-bash\">kpcli -f \/path\/to\/your\/database.kdbx<\/code><\/pre>\n<p>Komutu \u00e7al\u0131\u015ft\u0131rd\u0131ktan sonra, <code>kpcli<\/code> sizden master \u015fifrenizi isteyecektir:<\/p>\n<pre><code class=\"language-\">Enter master password for \/path\/to\/your\/database.kdbx:<\/code><\/pre>\n<p>\u015eifrenizi do\u011fru girdi\u011finizde, <code>kpcli<\/code>&#8216;nin etkile\u015fimli kabu\u011funa y\u00f6nlendirileceksiniz. \u0130stemi (prompt) genellikle <code>kpcli><\/code> \u015feklinde olacakt\u0131r.<\/p>\n<p>E\u011fer veritaban\u0131n\u0131z bir anahtar dosyas\u0131 (<code>.keyx<\/code>) kullan\u0131yorsa, bunu <code>-k<\/code> veya <code>--keyfile<\/code> parametresiyle belirtebilirsiniz:<\/p>\n<pre><code class=\"language-bash\">kpcli -f \/path\/to\/your\/database.kdbx -k \/path\/to\/your\/keyfile.keyx<\/code><\/pre>\n<h3>Temel Komutlar<\/h3>\n<p><code>kpcli<\/code> etkile\u015fimli kabuk i\u00e7inde bir\u00e7ok UNIX benzeri komutu destekler. \u0130\u015fte baz\u0131 temel komutlar:<\/p>\n<p>*   <strong><code>ls<\/code><\/strong>: Ge\u00e7erli gruptaki giri\u015fleri ve alt gruplar\u0131 listeler.<br \/>\n*   <strong><code>cd <group_name><\/code><\/strong>: Ba\u015fka bir gruba ge\u00e7i\u015f yapar. <code>cd ..<\/code> \u00fcst gruba d\u00f6ner, <code>cd \/<\/code> k\u00f6k gruba gider.<br \/>\n*   <strong><code>pwd<\/code><\/strong>: Ge\u00e7erli \u00e7al\u0131\u015fma dizinini (grubu) g\u00f6sterir.<br \/>\n*   <strong><code>show <entry_title><\/code><\/strong>: Belirtilen giri\u015fin t\u00fcm detaylar\u0131n\u0131 g\u00f6sterir.<br \/>\n*   <strong><code>get <entry_title> <field><\/code><\/strong>: Belirtilen giri\u015fin belirli bir alan\u0131n\u0131 (\u00f6rne\u011fin <code>password<\/code>, <code>username<\/code>, <code>url<\/code>, <code>notes<\/code>) al\u0131r.<br \/>\n*   <strong><code>help<\/code><\/strong>: Kullan\u0131labilir komutlar\u0131n listesini g\u00f6sterir. <code>help <command><\/code> ile belirli bir komut hakk\u0131nda bilgi alabilirsiniz.<br \/>\n*   <strong><code>exit<\/code> veya <code>quit<\/code><\/strong>: <code>kpcli<\/code> kabu\u011fundan \u00e7\u0131kar ve veritaban\u0131n\u0131 kapat\u0131r (e\u011fer kaydedilmemi\u015f de\u011fi\u015fiklikler varsa uyar\u0131 verir).<\/p>\n<p><strong>\u00d6rnek Kullan\u0131m:<\/strong><\/p>\n<pre><code class=\"language-bash\">kpcli> ls\n[General]\n[Web Sites]\n[Servers]\nMySSHLogin\n\nkpcli> cd Servers\nkpcli> ls\nMyWebAppServer\nDatabaseServer\n\nkpcli> show MyWebAppServer\nTitle: MyWebAppServer\nUsername: admin\nPassword: [hidden]\nURL: ssh:\/\/mywebapp.com\nNotes: Production server login\nCreated: 2023-10-26 10:00:00\nModified: 2023-10-26 10:00:00\n\nkpcli> get MyWebAppServer password\nYourPassword123!<\/code><\/pre>\n<p><code>get<\/code> komutunu kullanarak \u015fifreleri do\u011frudan alabilir ve gerekti\u011finde di\u011fer komutlarla borulayarak (pipe) kullanabilirsiniz. Ancak bu t\u00fcr hassas bilgileri komut sat\u0131r\u0131nda g\u00f6r\u00fcn\u00fcr b\u0131rakmamaya dikkat edin.<\/p>\n<h2>Giri\u015fleri Y\u00f6netme<\/h2>\n<p><code>kpcli<\/code> sadece mevcut giri\u015fleri g\u00f6r\u00fcnt\u00fclemekle kalmaz, ayn\u0131 zamanda yeni giri\u015fler eklemenize, mevcut giri\u015fleri d\u00fczenlemenize ve silmenize de olanak tan\u0131r.<\/p>\n<h3>Yeni Giri\u015f Ekleme<\/h3>\n<p>Yeni bir \u015fifre giri\u015fi eklemek i\u00e7in <code>add<\/code> komutunu kullan\u0131n. Komutu \u00e7al\u0131\u015ft\u0131rd\u0131\u011f\u0131n\u0131zda, <code>kpcli<\/code> sizden gerekli bilgileri etkile\u015fimli olarak isteyecektir:<\/p>\n<pre><code class=\"language-bash\">kpcli> add\nTitle: MyNewService\nUsername: myuser\nPassword: [new_password_here]\nVerify password: [new_password_here]\nURL: https:\/\/mynewservice.com\nNotes: This is a new service entry.<\/code><\/pre>\n<p>\u015eifreyi girerken girdi\u011finiz karakterler ekranda g\u00f6r\u00fcnmeyecektir. T\u00fcm bilgileri girdikten sonra <code>kpcli<\/code> giri\u015fi veritaban\u0131na ekleyecektir. Ancak, bu de\u011fi\u015fiklikler hen\u00fcz kal\u0131c\u0131 de\u011fildir. De\u011fi\u015fiklikleri kaydetmek i\u00e7in <code>save<\/code> komutunu kullanman\u0131z gerekir.<\/p>\n<h3>Giri\u015fleri D\u00fczenleme ve Silme<\/h3>\n<p>Mevcut bir giri\u015fi d\u00fczenlemek i\u00e7in <code>edit<\/code> komutunu, silmek i\u00e7in ise <code>rm<\/code> komutunu kullan\u0131n.<\/p>\n<p>Bir giri\u015fi d\u00fczenlemek i\u00e7in:<\/p>\n<pre><code class=\"language-bash\">kpcli> edit MyNewService<\/code><\/pre>\n<p>Bu komut, <code>MyNewService<\/code> giri\u015finin mevcut bilgilerini g\u00f6sterir ve her alan i\u00e7in yeni bir de\u011fer girmenizi veya mevcut de\u011feri de\u011fi\u015ftirmeden b\u0131rakmak i\u00e7in Enter tu\u015funa basman\u0131z\u0131 ister.<\/p>\n<p>Bir giri\u015fi silmek i\u00e7in:<\/p>\n<pre><code class=\"language-bash\">kpcli> rm MyNewService<\/code><\/pre>\n<p><code>kpcli<\/code> sizden silme i\u015flemini onaylaman\u0131z\u0131 isteyecektir. Onaylad\u0131ktan sonra giri\u015f veritaban\u0131ndan silinir.<\/p>\n<p><strong>De\u011fi\u015fiklikleri Kaydetme:<\/strong><br \/>\n<code>add<\/code>, <code>edit<\/code> veya <code>rm<\/code> gibi komutlarla yapt\u0131\u011f\u0131n\u0131z t\u00fcm de\u011fi\u015fiklikler, <code>save<\/code> komutunu \u00e7al\u0131\u015ft\u0131rana kadar kal\u0131c\u0131 de\u011fildir.<\/p>\n<pre><code class=\"language-bash\">kpcli> save\nDatabase saved.<\/code><\/pre>\n<p>Veritaban\u0131n\u0131 kaydetmeden <code>exit<\/code> yaparsan\u0131z, <code>kpcli<\/code> size kaydedilmemi\u015f de\u011fi\u015fiklikler oldu\u011funu bildirecek ve kaydetmek isteyip istemedi\u011finizi soracakt\u0131r.<\/p>\n<h2>Pratik Kullan\u0131m Senaryolar\u0131 ve Otomasyon<\/h2>\n<p><code>kpcli<\/code>&#8216;nin komut sat\u0131r\u0131 aray\u00fcz\u00fc olmas\u0131, onu sunucu ortam\u0131nda otomasyon ve betikleme i\u00e7in ideal k\u0131lar.<\/p>\n<h3>Otomatik \u015eifre Alma<\/h3>\n<p>Bir betik i\u00e7inde belirli bir servisin \u015fifresini almak isteyebilirsiniz. <code>kpcli<\/code>&#8216;yi etkile\u015fimli olmayan modda \u00e7al\u0131\u015ft\u0131rarak bu i\u015flemi ger\u00e7ekle\u015ftirebilirsiniz. Ancak, master \u015fifrenizi betik i\u00e7ine do\u011frudan yazmak <strong>KES\u0130NL\u0130KLE TAVS\u0130YE ED\u0130LMEZ<\/strong> ve b\u00fcy\u00fck bir g\u00fcvenlik a\u00e7\u0131\u011f\u0131 olu\u015fturur.<\/p>\n<p>Bunun yerine, master \u015fifreyi bir ortam de\u011fi\u015fkeninden okumak veya <code>gpg<\/code> ile \u015fifrelenmi\u015f bir dosyadan almak gibi daha g\u00fcvenli y\u00f6ntemler kullanmal\u0131s\u0131n\u0131z. En basit ama yine de dikkatli olunmas\u0131 gereken y\u00f6ntemlerden biri, \u015fifreyi bir ortam de\u011fi\u015fkenine atay\u0131p <code>kpcli<\/code>&#8216;ye <code>-p<\/code> parametresiyle ge\u00e7irmektir (ancak bu \u015fifre <code>ps<\/code> komutuyla g\u00f6r\u00fclebilir, bu y\u00fczden \u00e7ok k\u0131sa \u00f6m\u00fcrl\u00fc i\u015flemler i\u00e7in tercih edilebilir). Daha g\u00fcvenli bir yakla\u015f\u0131m, <code>read -s<\/code> kullanarak \u015fifreyi etkile\u015fimli olarak almak veya bir anahtar dosyas\u0131 kullanmakt\u0131r.<\/p>\n<p><strong>\u00d6rnek (\u00c7ok K\u0131sa \u00d6m\u00fcrl\u00fc Betikler \u0130\u00e7in ve Dikkatle Kullan\u0131n):<\/strong><\/p>\n<pre><code class=\"language-bash\">#!\/bin\/bash\nKEEPASS_FILE=\"\/home\/user\/passwords.kdbx\"\nENTRY_TITLE=\"MyWebAppServer\"\n\n<h2>Master \u015fifreyi g\u00fcvenli bir \u015fekilde al\u0131n (\u00f6rne\u011fin, bir GPG \u015fifreli dosyadan veya ortam de\u011fi\u015fkeninden)<\/h2>\n<h2>BU \u00d6RNEK SADECE G\u00d6STER\u0130M AMA\u00c7LIDIR, \u015e\u0130FREY\u0130 DO\u011eRUDAN BET\u0130\u011eE YAZMAYIN!<\/h2>\n<h2>MASTER_PASSWORD=\"YourSuperSecureMasterPassword\" # ASLA B\u00d6YLE YAPMAYIN!<\/h2>\n\n<h2>Daha g\u00fcvenli bir yakla\u015f\u0131m: \u015eifreyi etkile\u015fimli olarak isteyin<\/h2>\nread -s -p \"KeePass Master \u015eifresi: \" MASTER_PASSWORD\necho\n\n<h2>kpcli'yi etkile\u015fimli olmayan modda \u00e7al\u0131\u015ft\u0131r\u0131n ve \u015fifreyi al\u0131n<\/h2>\nSERVICE_PASSWORD=$(echo \"$MASTER_PASSWORD\" | kpcli -f \"$KEEPASS_FILE\" -p -c \"get \\\"$ENTRY_TITLE\\\" password\")\n\necho \"Servis \u015eifresi: $SERVICE_PASSWORD\"\n\n<h2>Hassas bilgileri temizleyin<\/h2>\nunset MASTER_PASSWORD\nclear # Ekran\u0131 temizle<\/code><\/pre>\n<p>Bu betik, <code>kpcli<\/code>&#8216;yi <code>-p<\/code> (master \u015fifreyi stdin&#8217;den oku) ve <code>-c<\/code> (komutlar\u0131 \u00e7al\u0131\u015ft\u0131r ve \u00e7\u0131k) parametreleriyle kullanarak belirli bir giri\u015fin \u015fifresini al\u0131r.<\/p>\n<h3>Yedekleme ve Senkronizasyon<\/h3>\n<p>KeePass veritaban\u0131 dosyan\u0131z (<code>.kdbx<\/code>), t\u00fcm \u015fifrelerinizi i\u00e7erdi\u011finden son derece de\u011ferlidir. D\u00fczenli yedeklemeler yapmak hayati \u00f6nem ta\u015f\u0131r. <code>kpcli<\/code>&#8216;nin kendisi yerle\u015fik bir senkronizasyon \u00f6zelli\u011fine sahip de\u011fildir, ancak <code>.kdbx<\/code> dosyas\u0131 standart bir dosya oldu\u011fu i\u00e7in, dosya sistemi ara\u00e7lar\u0131yla kolayca yedeklenebilir:<\/p>\n<pre><code class=\"language-bash\"># Yerel yedekleme\ncp \/home\/user\/passwords.kdbx \/home\/user\/backups\/passwords_$(date +%F).kdbx\n\n<h2>Uzak sunucuya rsync ile yedekleme (SSH anahtarlar\u0131 ile parola sormadan)<\/h2>\nrsync -avz \/home\/user\/passwords.kdbx user@remote_server:\/path\/to\/remote\/backups\/<\/code><\/pre>\n<p>Veritaban\u0131 dosyan\u0131z\u0131n yetkisiz eri\u015fime kar\u015f\u0131 korunmas\u0131 i\u00e7in dosya izinlerini do\u011fru ayarlad\u0131\u011f\u0131n\u0131zdan emin olun:<\/p>\n<pre><code class=\"language-bash\">chmod 600 \/home\/user\/passwords.kdbx<\/code><\/pre>\n<p>Bu, yaln\u0131zca dosyan\u0131n sahibinin okuma ve yazma iznine sahip olmas\u0131n\u0131 sa\u011flar.<\/p>\n<h3>G\u00fcvenlik \u0130pu\u00e7lar\u0131<\/h3>\n<p>*   <strong>G\u00fc\u00e7l\u00fc Master \u015eifre:<\/strong> KeePass veritaban\u0131n\u0131z\u0131n master \u015fifresi, t\u00fcm \u015fifrelerinizin anahtar\u0131d\u0131r. Uzun, karma\u015f\u0131k ve benzersiz bir \u015fifre kullan\u0131n. Anahtar dosyas\u0131 kullanmak g\u00fcvenli\u011fi daha da art\u0131r\u0131r.<br \/>\n*   <strong>Dosya \u0130zinleri:<\/strong> <code>.kdbx<\/code> ve <code>.keyx<\/code> dosyalar\u0131n\u0131za sadece yetkili kullan\u0131c\u0131lar\u0131n eri\u015febildi\u011finden emin olun (<code>chmod 600<\/code>).<br \/>\n*   <strong>Komut Ge\u00e7mi\u015fi:<\/strong> <code>kpcli<\/code>&#8216;den \u00e7\u0131kt\u0131ktan sonra shell ge\u00e7mi\u015finde hassas komutlar\u0131n (\u00f6zellikle \u015fifrelerin do\u011frudan g\u00f6r\u00fcnd\u00fc\u011f\u00fc komutlar) kalmad\u0131\u011f\u0131ndan emin olun. <code>~\/.bash_history<\/code> veya <code>~\/.zsh_history<\/code> gibi dosyalar\u0131 kontrol edin ve gerekirse temizleyin.<br \/>\n*   <strong><code>screen<\/code> veya <code>tmux<\/code> Kullan\u0131m\u0131:<\/strong> Uzun s\u00fcreli <code>kpcli<\/code> oturumlar\u0131 i\u00e7in <code>screen<\/code> veya <code>tmux<\/code> gibi terminal multiplexer&#8217;lar\u0131 kullan\u0131n. Bu, SSH ba\u011flant\u0131n\u0131z kesilse bile oturumunuzun devam etmesini sa\u011flar ve hassas bilgilerin ekranda kalmas\u0131n\u0131 \u00f6nler.<br \/>\n*   <strong>Ekran\u0131 Temizleme:<\/strong> Hassas bir bilgiyi <code>get<\/code> komutuyla ald\u0131ktan sonra <code>clear<\/code> komutunu kullanarak ekran\u0131 temizleyin.<br \/>\n*   <strong>Minimum Yetki Prensibi:<\/strong> <code>kpcli<\/code>&#8216;yi sadece ihtiya\u00e7 duyan kullan\u0131c\u0131lar\u0131n kullanmas\u0131na izin verin.<\/p>\n<h2>Sonu\u00e7<\/h2>\n<p>Bu rehberde, Ubuntu 14.04 sunucunuzda <code>kpcli<\/code>&#8216;yi kurmay\u0131 ve KeePass 2.x \u015fifre dosyalar\u0131n\u0131z\u0131 komut sat\u0131r\u0131ndan y\u00f6netmeyi \u00f6\u011frendiniz. <code>kpcli<\/code>, ba\u015fs\u0131z sunucu ortamlar\u0131nda \u015fifre y\u00f6netimi i\u00e7in g\u00fc\u00e7l\u00fc ve esnek bir \u00e7\u00f6z\u00fcm sunar. Kurulumdan ba\u015flayarak, veritaban\u0131 eri\u015fimi, temel komutlar, giri\u015f y\u00f6netimi ve otomasyon senaryolar\u0131 gibi konular\u0131 ele ald\u0131k.<\/p>\n<p>Unutulmamal\u0131d\u0131r ki, sunucu ortam\u0131nda \u015fifre y\u00f6netimi y\u00fcksek d\u00fczeyde g\u00fcvenlik bilinci gerektirir. Master \u015fifrenizin korunmas\u0131, dosya izinlerinin do\u011fru ayarlanmas\u0131 ve otomasyon betiklerinin dikkatli bir \u015fekilde yaz\u0131lmas\u0131, g\u00fcvenli bir sistemin temel ta\u015flar\u0131d\u0131r. <code>kpcli<\/code>&#8216;nin sundu\u011fu esneklik sayesinde, sunucu i\u015f ak\u0131\u015flar\u0131n\u0131za KeePass g\u00fcvenli\u011fini entegre edebilir ve hassas bilgilerinizi merkezi ve g\u00fcvenli bir \u015fekilde y\u00f6netebilirsiniz.<\/p>\n<h3>S\u0131k\u00e7a Sorulan Sorular (SSS)<\/h3>\n<p><strong>1. <code>kpcli<\/code> sadece <code>.kdbx<\/code> dosyalar\u0131n\u0131 m\u0131 destekler?<\/strong><br \/>\nEvet, <code>kpcli<\/code> sadece KeePass 2.x format\u0131ndaki <code>.kdbx<\/code> uzant\u0131l\u0131 veritaban\u0131 dosyalar\u0131n\u0131 destekler. KeePass 1.x format\u0131ndaki <code>.kdb<\/code> dosyalar\u0131n\u0131 desteklemez.<\/p>\n<p><strong>2. Master \u015fifremi komut sat\u0131r\u0131nda do\u011frudan ge\u00e7irebilir miyim?<\/strong><br \/>\n<code>kpcli<\/code>&#8216;ye master \u015fifreyi <code>-p<\/code> parametresiyle stdin&#8217;den ge\u00e7irebilirsiniz (<code>echo \"\u015fifrem\" | kpcli -f dosya.kdbx -p<\/code>). Ancak, \u015fifreyi komut sat\u0131r\u0131 arg\u00fcman\u0131 olarak do\u011frudan belirtmek (<code>kpcli -f dosya.kdbx --password \"\u015fifrem\"<\/code>) g\u00fcvenlik a\u00e7\u0131s\u0131ndan kesinlikle \u00f6nerilmez, \u00e7\u00fcnk\u00fc \u015fifre sistemin i\u015flem listesinde (ps komutuyla) g\u00f6r\u00fclebilir hale gelir. M\u00fcmk\u00fcnse etkile\u015fimli giri\u015fi veya anahtar dosyas\u0131n\u0131 tercih edin.<\/p>\n<p><strong>3. <code>kpcli<\/code> ile anahtar dosyas\u0131 kullanabilir miyim?<\/strong><br \/>\nEvet, <code>kpcli<\/code> anahtar dosyalar\u0131n\u0131 (<code>.keyx<\/code>) destekler. <code>-k<\/code> veya <code>--keyfile<\/code> parametresini kullanarak anahtar dosyan\u0131z\u0131n yolunu belirtebilirsiniz:<br \/>\n<code>kpcli -f \/path\/to\/database.kdbx -k \/path\/to\/keyfile.keyx<\/code><\/p>\n<p><strong>4. Ubuntu 14.04 d\u0131\u015f\u0131nda ba\u015fka sistemlerde \u00e7al\u0131\u015f\u0131r m\u0131?<\/strong><br \/>\nEvet, <code>kpcli<\/code> Perl ile yaz\u0131ld\u0131\u011f\u0131 i\u00e7in, Perl&#8217;in ve gerekli mod\u00fcllerin y\u00fckl\u00fc oldu\u011fu herhangi bir Unix benzeri sistemde (Ubuntu&#8217;nun daha yeni s\u00fcr\u00fcmleri, Debian, CentOS, macOS vb.) \u00e7al\u0131\u015fabilir. Kurulum ad\u0131mlar\u0131 i\u015fletim sistemine g\u00f6re k\u00fc\u00e7\u00fck farkl\u0131l\u0131klar g\u00f6sterebilir.<\/p>\n<p><strong>5. Veritaban\u0131 otomatik kaydediliyor mu?<\/strong><br \/>\nHay\u0131r, <code>kpcli<\/code> i\u00e7inde yapt\u0131\u011f\u0131n\u0131z de\u011fi\u015fiklikler (ekleme, d\u00fczenleme, silme) otomatik olarak kaydedilmez. De\u011fi\u015fikliklerin kal\u0131c\u0131 olmas\u0131 i\u00e7in <code>save<\/code> komutunu \u00e7al\u0131\u015ft\u0131rman\u0131z gerekir.<\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"Giri\u015f\nG\u00fcn\u00fcm\u00fcz siber d\u00fcnyas\u0131nda \u015fifre y\u00f6netimi, hem bireysel kullan\u0131c\u0131lar hem de sunucu ortamlar\u0131 i\u00e7in kritik bir \u00f6neme sahiptir. KeePa","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"csco_page_header_type":"","csco_page_load_nextpost":"","csco_page_subscribe_form":"","csco_page_contact_form":"","footnotes":""},"categories":[1468],"tags":[],"class_list":{"0":"post-35292","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-ubuntu","7":"cs-entry","8":"cs-video-wrap"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.5 (Yoast SEO v25.3.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How To Use kpcli To Manage KeePass2 Password Files on an Ubuntu 14.04 Server - Kodlar\u0131n Gizemli D\u00fcnyas\u0131<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fatihsoysal.com\/blog\/how-to-use-kpcli-to-manage-keepass2-password-files-on-an-ubuntu-14-04-server\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Use kpcli To Manage KeePass2 Password Files on an Ubuntu 14.04 Server\" \/>\n<meta property=\"og:description\" content=\"Giri\u015f G\u00fcn\u00fcm\u00fcz siber d\u00fcnyas\u0131nda \u015fifre y\u00f6netimi, hem bireysel kullan\u0131c\u0131lar hem de sunucu ortamlar\u0131 i\u00e7in kritik bir \u00f6neme sahiptir. KeePa\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fatihsoysal.com\/blog\/how-to-use-kpcli-to-manage-keepass2-password-files-on-an-ubuntu-14-04-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Kodlar\u0131n Gizemli D\u00fcnyas\u0131\" \/>\n<meta property=\"article:published_time\" content=\"2025-11-27T21:41:30+00:00\" \/>\n<meta name=\"author\" content=\"Fatih Soysal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Yazan:\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fatih Soysal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tahmini okuma s\u00fcresi\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/how-to-use-kpcli-to-manage-keepass2-password-files-on-an-ubuntu-14-04-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/how-to-use-kpcli-to-manage-keepass2-password-files-on-an-ubuntu-14-04-server\/\"},\"author\":{\"name\":\"Fatih Soysal\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"headline\":\"How To Use kpcli To Manage KeePass2 Password Files on an Ubuntu 14.04 Server\",\"datePublished\":\"2025-11-27T21:41:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/how-to-use-kpcli-to-manage-keepass2-password-files-on-an-ubuntu-14-04-server\/\"},\"wordCount\":1644,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"articleSection\":[\"Ubuntu\"],\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/how-to-use-kpcli-to-manage-keepass2-password-files-on-an-ubuntu-14-04-server\/#respond\"]}],\"copyrightYear\":\"2025\",\"copyrightHolder\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/how-to-use-kpcli-to-manage-keepass2-password-files-on-an-ubuntu-14-04-server\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/how-to-use-kpcli-to-manage-keepass2-password-files-on-an-ubuntu-14-04-server\/\",\"name\":\"How To Use kpcli To Manage KeePass2 Password Files on an Ubuntu 14.04 Server - Kodlar\u0131n Gizemli D\u00fcnyas\u0131\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\"},\"datePublished\":\"2025-11-27T21:41:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/how-to-use-kpcli-to-manage-keepass2-password-files-on-an-ubuntu-14-04-server\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/how-to-use-kpcli-to-manage-keepass2-password-files-on-an-ubuntu-14-04-server\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/how-to-use-kpcli-to-manage-keepass2-password-files-on-an-ubuntu-14-04-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Anasayfa\",\"item\":\"https:\/\/fatihsoysal.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Use kpcli To Manage KeePass2 Password Files on an Ubuntu 14.04 Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/\",\"name\":\"Fatihsoysal.com\",\"description\":\"Blog - Yaz\u0131l\u0131m D\u00fcnyas\u0131 Tecr\u00fcbelerim\",\"publisher\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fatihsoysal.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"tr\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\",\"name\":\"Fatih Soysal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"tr\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png\",\"contentUrl\":\"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png\",\"width\":512,\"height\":512,\"caption\":\"Fatih Soysal\"},\"logo\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/\"},\"description\":\"Kullan\u0131m ve kodlama m\u00fckemmeliyetini odak alan uygulamalar olu\u015fturma deneyimine sahip, profesyonel olarak 15+ y\u0131l \u00fczeri deneyime sahip bir yaz\u0131l\u0131m m\u00fchendisi.\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/author\/fatihsoysal\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How To Use kpcli To Manage KeePass2 Password Files on an Ubuntu 14.04 Server - Kodlar\u0131n Gizemli D\u00fcnyas\u0131","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/fatihsoysal.com\/blog\/how-to-use-kpcli-to-manage-keepass2-password-files-on-an-ubuntu-14-04-server\/","og_locale":"tr_TR","og_type":"article","og_title":"How To Use kpcli To Manage KeePass2 Password Files on an Ubuntu 14.04 Server","og_description":"Giri\u015f G\u00fcn\u00fcm\u00fcz siber d\u00fcnyas\u0131nda \u015fifre y\u00f6netimi, hem bireysel kullan\u0131c\u0131lar hem de sunucu ortamlar\u0131 i\u00e7in kritik bir \u00f6neme sahiptir. KeePa","og_url":"https:\/\/fatihsoysal.com\/blog\/how-to-use-kpcli-to-manage-keepass2-password-files-on-an-ubuntu-14-04-server\/","og_site_name":"Kodlar\u0131n Gizemli D\u00fcnyas\u0131","article_published_time":"2025-11-27T21:41:30+00:00","author":"Fatih Soysal","twitter_card":"summary_large_image","twitter_misc":{"Yazan:":"Fatih Soysal","Tahmini okuma s\u00fcresi":"10 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fatihsoysal.com\/blog\/how-to-use-kpcli-to-manage-keepass2-password-files-on-an-ubuntu-14-04-server\/#article","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/how-to-use-kpcli-to-manage-keepass2-password-files-on-an-ubuntu-14-04-server\/"},"author":{"name":"Fatih Soysal","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"headline":"How To Use kpcli To Manage KeePass2 Password Files on an Ubuntu 14.04 Server","datePublished":"2025-11-27T21:41:30+00:00","mainEntityOfPage":{"@id":"https:\/\/fatihsoysal.com\/blog\/how-to-use-kpcli-to-manage-keepass2-password-files-on-an-ubuntu-14-04-server\/"},"wordCount":1644,"commentCount":0,"publisher":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"articleSection":["Ubuntu"],"inLanguage":"tr","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fatihsoysal.com\/blog\/how-to-use-kpcli-to-manage-keepass2-password-files-on-an-ubuntu-14-04-server\/#respond"]}],"copyrightYear":"2025","copyrightHolder":{"@id":"https:\/\/fatihsoysal.com\/blog\/#organization"}},{"@type":"WebPage","@id":"https:\/\/fatihsoysal.com\/blog\/how-to-use-kpcli-to-manage-keepass2-password-files-on-an-ubuntu-14-04-server\/","url":"https:\/\/fatihsoysal.com\/blog\/how-to-use-kpcli-to-manage-keepass2-password-files-on-an-ubuntu-14-04-server\/","name":"How To Use kpcli To Manage KeePass2 Password Files on an Ubuntu 14.04 Server - Kodlar\u0131n Gizemli D\u00fcnyas\u0131","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/#website"},"datePublished":"2025-11-27T21:41:30+00:00","breadcrumb":{"@id":"https:\/\/fatihsoysal.com\/blog\/how-to-use-kpcli-to-manage-keepass2-password-files-on-an-ubuntu-14-04-server\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fatihsoysal.com\/blog\/how-to-use-kpcli-to-manage-keepass2-password-files-on-an-ubuntu-14-04-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/fatihsoysal.com\/blog\/how-to-use-kpcli-to-manage-keepass2-password-files-on-an-ubuntu-14-04-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Anasayfa","item":"https:\/\/fatihsoysal.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Use kpcli To Manage KeePass2 Password Files on an Ubuntu 14.04 Server"}]},{"@type":"WebSite","@id":"https:\/\/fatihsoysal.com\/blog\/#website","url":"https:\/\/fatihsoysal.com\/blog\/","name":"Fatihsoysal.com","description":"Blog - Yaz\u0131l\u0131m D\u00fcnyas\u0131 Tecr\u00fcbelerim","publisher":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fatihsoysal.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"tr"},{"@type":["Person","Organization"],"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1","name":"Fatih Soysal","image":{"@type":"ImageObject","inLanguage":"tr","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png","contentUrl":"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png","width":512,"height":512,"caption":"Fatih Soysal"},"logo":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/"},"description":"Kullan\u0131m ve kodlama m\u00fckemmeliyetini odak alan uygulamalar olu\u015fturma deneyimine sahip, profesyonel olarak 15+ y\u0131l \u00fczeri deneyime sahip bir yaz\u0131l\u0131m m\u00fchendisi.","url":"https:\/\/fatihsoysal.com\/blog\/author\/fatihsoysal\/"}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/35292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/comments?post=35292"}],"version-history":[{"count":1,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/35292\/revisions"}],"predecessor-version":[{"id":35293,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/35292\/revisions\/35293"}],"wp:attachment":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/media?parent=35292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/categories?post=35292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/tags?post=35292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}