<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>@Summitt Dweller’s Personal Blog - Remote Atom</title>
    <link>https://blog.summittdweller.com/tags/remote-atom/</link>
    <description>All entries in Remote Atom on Personal Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    
    <lastBuildDate>Sun, 15 Mar 2020 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://blog.summittdweller.com/tags/remote-atom/" rel="self" type="application/rss+xml" />
    
      
      <item>
        <title>Adding &#34;Remote Atom&#34; to My DigitalOcean Server</title>
        <link>https://blog.summittdweller.com/posts/2020/03/adding-remote-atom-to-my-digitalocean-server/</link>
        <pubDate>Sun, 15 Mar 2020 00:00:00 +0000</pubDate>
        <author>Mark McFate</author>
        <guid>https://blog.summittdweller.com/posts/2020/03/adding-remote-atom-to-my-digitalocean-server/</guid>
        <description>&lt;p&gt;Last evening and early this morning I completed the addition of a new (to me) package to &lt;em&gt;Atom&lt;/em&gt; on my Mac Mini.  The package is &lt;a href=&#34;https://atom.io/packages/remote-atom&#34;&gt;Remote Atom&lt;/a&gt; and I found the configuration to be a little confusing, but in the end it was worth the work.&lt;/p&gt;
&lt;h2 id=&#34;use&#34;&gt;Use&lt;/h2&gt;
&lt;p&gt;The addition and configuration of this package allows me to open an &lt;em&gt;SSH&lt;/em&gt; terminal/session from my Mac Mini to my &lt;em&gt;summitt-dweller-DO-docker&lt;/em&gt; droplet and, with &lt;em&gt;Atom&lt;/em&gt; open locally on my Mac I can issue a command like&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;ratom /opt/README.md
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;in the terminal connected to &lt;em&gt;summitt-dweller-DO-docker&lt;/em&gt;, and the specified &amp;ldquo;remote&amp;rdquo; file will open in my local &lt;em&gt;Atom&lt;/em&gt;.  Better still, if I make changes to the file and save them, the remote copy is automatically updated as saved.&lt;/p&gt;
&lt;h2 id=&#34;configuration&#34;&gt;Configuration&lt;/h2&gt;
&lt;p&gt;As I said, configuration was a little dicey.  Mine followed exactly what&amp;rsquo;s documented in &lt;a href=&#34;https://atom.io/packages/remote-atom&#34;&gt;the project site&lt;/a&gt;, complete with renaming &lt;code&gt;rmate&lt;/code&gt; to &lt;code&gt;ratom&lt;/code&gt; as suggested.  The real key to configuration has two parts:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;First, &lt;em&gt;Atom&lt;/em&gt; has to be open locally. This is necessary to get the package running so that it can accept connections from the remote, and that also requires that the package is auto-started along with &lt;em&gt;Atom&lt;/em&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Next, I added the following specs to &lt;code&gt;~/.ssh/config&lt;/code&gt; on my Mac Mini:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Host 104.248.237.235
  RemoteForward 52698 localhost:52698
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That addition to &lt;code&gt;~/.ssh/config&lt;/code&gt; allows me to run my usual &lt;em&gt;ssh&lt;/em&gt; connection commands without having to specify any remote/reverse tunneling&amp;hellip;the config does it for me automatically when the &amp;ldquo;Host&amp;rdquo; or target is &lt;em&gt;summitt-dweller-DO-docker&lt;/em&gt;.  Without that spec I&amp;rsquo;d have to configure each &lt;em&gt;ssh&lt;/em&gt; connection I open, like so:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;ssh -R 52698:localhost:52698 administrator@104.248.237.235
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;That&amp;rsquo;s a wrap. Until next time&amp;hellip;&lt;/p&gt;
</description>
      </item>
      
    
  </channel>
</rss>
