<?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 Puppeteers Oy</title>
		<link>https://www.puppeteers.net/tags/ssh/</link>
		<description>Recent content in Ssh on Puppeteers Oy</description>
		<generator>Hugo</generator>
		<language>en-US</language>
		
		
		
		
			<lastBuildDate>Thu, 28 Apr 2022 00:00:00 +0000</lastBuildDate>
		
			<atom:link href="https://www.puppeteers.net/tags/ssh/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>X11 Connection Rejected</title>
				<link>https://www.puppeteers.net/blog/x11-connection-rejected/</link>
				<pubDate>Thu, 28 Apr 2022 00:00:00 +0000</pubDate>
				<guid>https://www.puppeteers.net/blog/x11-connection-rejected/</guid>
				<description>&lt;p&gt;When switching to root after the typical SSH with X11 forwarding enabled this error can appear:&lt;/p&gt;&#xA;&lt;div class=&#34;code-block&#34;&gt;&#xA;    &lt;button class=&#34;code-copy&#34; type=&#34;button&#34; hidden aria-label=&#34;Copy code to clipboard&#34;&gt;&#xA;      &lt;span class=&#34;code-copy-label&#34; aria-hidden=&#34;true&#34;&gt;Copy&lt;/span&gt;&#xA;    &lt;/button&gt;&#xA;    &lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ X11 connection rejected because of wrong authentication.&#xA;$ Error: Can&amp;#39;t open display: localhost:10.0&lt;/code&gt;&lt;/pre&gt;&#xA;  &lt;/div&gt;&lt;p&gt;The workaround seems to include copying the &lt;strong&gt;MIT-MAGIC-COOKIE-1&lt;/strong&gt; from the user who ssh&amp;rsquo;d in to the root user using xauth. Here&amp;rsquo;s how:&lt;/p&gt;&#xA;&lt;p&gt;First verify the &lt;strong&gt;$DISPLAY&lt;/strong&gt; being used and list the &lt;strong&gt;MIT-MAGIC-COOKIE-1&lt;/strong&gt; used for it :&lt;/p&gt;</description>
			</item>
			<item>
				<title>Fattening the workflow, part 2: r10k</title>
				<link>https://www.puppeteers.net/blog/fattening-the-workflow-part-2-r10k/</link>
				<pubDate>Tue, 01 Dec 2020 00:00:00 +0000</pubDate>
				<guid>https://www.puppeteers.net/blog/fattening-the-workflow-part-2-r10k/</guid>
				<description>&lt;p&gt;In the previous post I discussed the &lt;a href=&#34;https://www.puppeteers.net/blog/fattening-the-puppet-workflow-part-1-the-control-repository/&#34;&gt;control repository structure&lt;/a&gt;. In this post I&amp;rsquo;ll talk about &lt;a href=&#34;https://github.com/puppetlabs/r10k&#34;&gt;r10k&lt;/a&gt;. That tool is used for deploying control repository branches into matching Puppet environments on the Puppet server. Installing r10k is very straightforward with the bundled gem:&lt;/p&gt;&#xA;&lt;div class=&#34;code-block&#34;&gt;&#xA;    &lt;button class=&#34;code-copy&#34; type=&#34;button&#34; hidden aria-label=&#34;Copy code to clipboard&#34;&gt;&#xA;      &lt;span class=&#34;code-copy-label&#34; aria-hidden=&#34;true&#34;&gt;Copy&lt;/span&gt;&#xA;    &lt;/button&gt;&#xA;    &lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ /opt/puppetlabs/puppet/bin/gem install r10k&lt;/code&gt;&lt;/pre&gt;&#xA;  &lt;/div&gt;&lt;p&gt;After this you&amp;rsquo;ll need a settings file for r10k, &lt;em&gt;/etc/puppetlabs/r10k/r10k.yaml:&lt;/em&gt;&lt;/p&gt;&#xA;&lt;div class=&#34;code-block&#34;&gt;&#xA;    &lt;button class=&#34;code-copy&#34; type=&#34;button&#34; hidden aria-label=&#34;Copy code to clipboard&#34;&gt;&#xA;      &lt;span class=&#34;code-copy-label&#34; aria-hidden=&#34;true&#34;&gt;Copy&lt;/span&gt;&#xA;    &lt;/button&gt;&#xA;    &lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;--- &#xA; :cachedir: /opt/puppetlabs/puppet/cache/r10k &#xA; :sources: &#xA; control: &#xA; basedir: /etc/puppetlabs/code/environments &#xA; prefix: false &#xA; remote: git@gitlab.com:myorg/control-repo.git&lt;/code&gt;&lt;/pre&gt;&#xA;  &lt;/div&gt;&lt;p&gt;Several requirements must be met before the configuration above will work:&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
