<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Ssh on Jose Castrillo</title>
    <link>https://jose.castrillo.eu/tags/ssh/</link>
    <description>Recent content in Ssh on Jose Castrillo</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Mon, 23 Nov 2020 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://jose.castrillo.eu/tags/ssh/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Open a Nextcloud&#39;s DB through a ssh connection</title>
      <link>https://jose.castrillo.eu/post/dbeaver-nextcloud-mariadb/</link>
      <pubDate>Mon, 23 Nov 2020 00:00:00 +0000</pubDate>
      <guid>https://jose.castrillo.eu/post/dbeaver-nextcloud-mariadb/</guid>
      <description>&lt;p&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://castrillo.gitlab.io/figaro/nextcloud-dbeaver.png&#34; alt=&#34;&#34;  /&gt;
&lt;/p&gt;
&lt;p&gt;The following post explains how to open and connect your Nextcloud&amp;rsquo;s DB (MariaDB) by a ssh tunnel.&lt;/p&gt;
&lt;p&gt;Field description:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Server side(GNULinux):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Nextcloud: running on Docker-compose engine.&lt;/li&gt;
&lt;li&gt;OS: Debian with Docker compose installed.&lt;/li&gt;
&lt;li&gt;Database: MariaDB.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Localhost side(GNULinux):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;OS: Fedora.&lt;/li&gt;
&lt;li&gt;CLient: Dbeader 7.2.5&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Further information you can go to my docker compose Statement &lt;a href=&#34;https://help.nextcloud.com/t/nexcloud-deployment-by-docker-compose/90660&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Edit your docker-compose.yml and add the &amp;ldquo;ports&amp;rdquo; key into the statement.&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ nano docker-compose.yml
  ports:
    - 5555:3306
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;port: 5555 &amp;ndash;&amp;gt; Host.&lt;/li&gt;
&lt;li&gt;port: 3306 &amp;ndash;&amp;gt; Container.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;From the above the port &amp;ldquo;5555&amp;rdquo; it was used as example.&lt;/p&gt;</description>
    </item>
    <item>
      <title>How to set you SSH key into Gitlab</title>
      <link>https://jose.castrillo.eu/post/ssh-gitlab-git/</link>
      <pubDate>Thu, 26 Dec 2019 00:00:00 +0000</pubDate>
      <guid>https://jose.castrillo.eu/post/ssh-gitlab-git/</guid>
      <description>&lt;p&gt;How to set you SSH key into Gitlab [&lt;em&gt;First you need to had installed Git onto your distro&lt;/em&gt;]&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Go to your terminal and issue the follow command to generate your key: &lt;code&gt;$ssh-keygen&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Copy your public key from the route: &lt;strong&gt;/home/user/.ssh/id_rsa.pub&lt;/strong&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Then go at your gitlab profile &lt;a href=&#34;https://gitlab.com/profile/keys/&#34;&gt;https://gitlab.com/profile/keys/&lt;/a&gt; a paste and save.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;From the terminal test the conection by typing: &lt;code&gt;$ssh -T git@gitlab.com&lt;/code&gt; and if everything was fine it has to promt &amp;ndash;&amp;gt; Welcome to GitLab, @user_account!&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
