<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>vs code &#8211; Tomas&#039; log of stuff</title>
	<atom:link href="https://blog.fjetland.com/tag/vs-code/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.fjetland.com</link>
	<description>Notes from the sysadmin trenches, on hobby photography, and anything else that comes to mind</description>
	<lastBuildDate>Wed, 15 Jun 2022 19:08:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>Connecting VS Code directly to Photon OS 4</title>
		<link>https://blog.fjetland.com/2022/06/connecting-vs-code-directly-to-photon-os-4/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=connecting-vs-code-directly-to-photon-os-4</link>
					<comments>https://blog.fjetland.com/2022/06/connecting-vs-code-directly-to-photon-os-4/#respond</comments>
		
		<dc:creator><![CDATA[tomasf]]></dc:creator>
		<pubDate>Wed, 15 Jun 2022 19:05:52 +0000</pubDate>
				<category><![CDATA[Containers]]></category>
		<category><![CDATA[Windows Software]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[photon os]]></category>
		<category><![CDATA[system administration]]></category>
		<category><![CDATA[vs code]]></category>
		<guid isPermaLink="false">http://blog.fjetland.com/?p=1441</guid>

					<description><![CDATA[Tweaking Photon OS to allow VS Code to connect to it over ssh]]></description>
										<content:encoded><![CDATA[<div class="wp-block-image">
<figure class="aligncenter size-large"><img fetchpriority="high" decoding="async" width="1024" height="536" src="http://blog.fjetland.com/wp-content/uploads/2022/06/vscode-1024x536.png" alt="" class="wp-image-1442" srcset="https://blog.fjetland.com/wp-content/uploads/2022/06/vscode-1024x536.png 1024w, https://blog.fjetland.com/wp-content/uploads/2022/06/vscode-300x157.png 300w, https://blog.fjetland.com/wp-content/uploads/2022/06/vscode-768x402.png 768w, https://blog.fjetland.com/wp-content/uploads/2022/06/vscode.png 1200w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure></div>


<p>This is just a quick update to <a href="http://blog.fjetland.com/2022/05/setting-up-photon-os-4-as-a-docker-host-vm-on-vsphere-7/" data-type="post" data-id="1401">my setting up Photon OS as a docker host</a> post. I use <a href="https://code.visualstudio.com/" data-type="URL" data-id="https://code.visualstudio.com/" target="_blank" rel="noopener">VS Code</a> to both (try to) write code and edit configuration files, such as YAML files for Docker Compose. So to make configuring containers faster and easier, I&#8217;d like to be able to edit the files directly on the Photon VM using VS Code with the <a href="https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack" target="_blank" rel="noopener">Remote Development pack</a> on my desktop.</p>



<p>To do this, VS Code wants to deploy a small component on the destination server, and that doesn&#8217;t run entirely smoothly on Photon OS minimal out of the box due to its small footprint. So here&#8217;s what I need to adjust.</p>



<p>First, it needs tar to untar the addon, so</p>



<pre class="wp-block-code"><code>tdnf -y install tar</code></pre>



<p>Next, the sshd demon needs to allow TCP forwarding, which it doesn&#8217;t out of the box.</p>



<pre class="wp-block-code"><code>sed -i "s/AllowTcpForwarding no/AllowTcpForwarding yes/g" /etc/ssh/sshd_config</code></pre>



<p>Then restart the sshd, and we&#8217;re good to go!</p>



<pre class="wp-block-code"><code>systemctl restart sshd</code></pre>



<p>And then VS Code is ready to connect straight to the Photon OS VM! If you remembered to install the extensions, obviously&#8230;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.fjetland.com/2022/06/connecting-vs-code-directly-to-photon-os-4/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
