<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Secure on Janik von Rotz</title>
    <link>https://janikvonrotz.ch/tags/secure/</link>
    <description>Recent content in Secure on Janik von Rotz</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Fri, 18 Oct 2024 11:03:41 +0200</lastBuildDate>
    <atom:link href="https://janikvonrotz.ch/tags/secure/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Store and load SSH keys in KeePass</title>
      <link>https://janikvonrotz.ch/2024/10/18/store-and-load-ssh-keys-in-keepass/</link>
      <pubDate>Fri, 18 Oct 2024 11:03:41 +0200</pubDate>
      <guid>https://janikvonrotz.ch/2024/10/18/store-and-load-ssh-keys-in-keepass/</guid>
      <description>&lt;p&gt;I learned about this KeePass feature way too late. With KeePass you can store and load your SSH keys in a secure and encrypted way. No more worrying about your SSH private key being exposed or accessed on your local machine.&lt;/p&gt;&#xA;&lt;p&gt;KeePass can communicate with the SSH agent. It is a feature that needs to be enabled:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Open KeePass and navigate to &lt;em&gt;Tools &amp;gt; Settings&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;Select &lt;em&gt;SSH Agent&lt;/em&gt; on the sidebar and click &lt;em&gt;Enable SSH Agent integration&lt;/em&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;You should get a notice &lt;em&gt;SSH Agent connection is working!&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Lets store the SSH private key in KeePass:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Open your KeePass database and create a new entry&lt;/li&gt;&#xA;&lt;li&gt;Define a custom title such as &lt;code&gt;SSH Key $YOURNAME&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;If the SSH private key is encrypted, store its password&lt;/li&gt;&#xA;&lt;li&gt;Then open the &lt;em&gt;Advanced&lt;/em&gt; section and upload your SSH private key as attachment:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://janikvonrotz.ch/images/KeePass-Attachments-SSH-Key.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Now open the &lt;em&gt;SSH Agent&lt;/em&gt; section and under &lt;em&gt;Private key&lt;/em&gt; select &lt;em&gt;attachment&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;Select your key file&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Now everything is ready to load the SSH private key with the agent.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Ensure that the &lt;code&gt;.ssh&lt;/code&gt; folder does not contain any key&lt;/li&gt;&#xA;&lt;li&gt;Open KeePass and right click the SSH key entry&lt;/li&gt;&#xA;&lt;li&gt;Click &lt;em&gt;Add key to SSH agent&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;Open the command line and test the SSH connection with &lt;code&gt;ssh -T git@github.com&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;You can customize the behaviour of the SSH Agent plugin in many ways. For example you can automatically load s specific SSH key if the database unlocked.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Install MySQL</title>
      <link>https://janikvonrotz.ch/2014/04/07/install-mysql/</link>
      <pubDate>Mon, 07 Apr 2014 07:14:46 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2014/04/07/install-mysql/</guid>
      <description>&lt;p&gt;&lt;em&gt;This post is part of my &lt;a href=&#34;https://janikvonrotz.ch/your-own-virtual-private-server-hosting-solution/&#34;&gt;Your own Virtual Private Server hosting solution&lt;/a&gt; project.&lt;/em&gt;&lt;br&gt;&#xA;&lt;em&gt;Get the latest version of this article here: &lt;a href=&#34;https://gist.github.com/9392658&#34;&gt;https://gist.github.com/9392658&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;h1 id=&#34;introduction&#34;&gt;Introduction&lt;/h1&gt;&#xA;&lt;p&gt;MySQL is the world&amp;rsquo;s most popular open source database system.&lt;/p&gt;&#xA;&lt;h1 id=&#34;requirements&#34;&gt;Requirements&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://janikvonrotz.ch/2014/03/13/deploy-ubuntu-server/&#34;&gt;Ubuntu server&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1 id=&#34;installation&#34;&gt;Installation&lt;/h1&gt;&#xA;&lt;p&gt;Install MySQL server&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;sudo apt-get install mysql-server&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Set the mysql root user password during the installation&lt;/p&gt;&#xA;&lt;p&gt;Install the default MySQL databases&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;sudo mysql_install_db&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Run the finisher script and respond except for the first prompt with yes in order to get a secure MySQL installation&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;sudo /usr/bin/mysql_secure_installation&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Connect to your new MySQL server&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;mysql -uroot -p&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Enter the root password&lt;/p&gt;&#xA;&lt;p&gt;And run this command to get the MySQL version&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;SHOW variables LIKE &amp;quot;%version%&amp;quot;;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h1 id=&#34;source&#34;&gt;Source&lt;/h1&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://help.ubuntu.com/12.04/serverguide/mysql.html&#34;&gt;Ubuntu MySQL server guide&lt;/a&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
