<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://info.stat.cmu.edu/index.php?action=history&amp;feed=atom&amp;title=VS_Code_Remote</id>
	<title>VS Code Remote - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://info.stat.cmu.edu/index.php?action=history&amp;feed=atom&amp;title=VS_Code_Remote"/>
	<link rel="alternate" type="text/html" href="https://info.stat.cmu.edu/index.php?title=VS_Code_Remote&amp;action=history"/>
	<updated>2026-11-05T08:48:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://info.stat.cmu.edu/index.php?title=VS_Code_Remote&amp;diff=849&amp;oldid=prev</id>
		<title>Ajshen at 03:36, 29 June 2026</title>
		<link rel="alternate" type="text/html" href="https://info.stat.cmu.edu/index.php?title=VS_Code_Remote&amp;diff=849&amp;oldid=prev"/>
		<updated>2026-06-29T03:36:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 03:36, 29 June 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:IDEs]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Remote Server Access]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Department Servers]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Wright Cluster]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:PSC]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Using &amp;#039;&amp;#039;&amp;#039;VS Code Remote Development&amp;#039;&amp;#039;&amp;#039;, you can edit files, run visual breakpoint debuggers, and execute terminals directly on the remote server—while keeping the smooth, graphical interface of your local laptop.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Using &amp;#039;&amp;#039;&amp;#039;VS Code Remote Development&amp;#039;&amp;#039;&amp;#039;, you can edit files, run visual breakpoint debuggers, and execute terminals directly on the remote server—while keeping the smooth, graphical interface of your local laptop.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key infowiki:diff:1.41:old-699:rev-849:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Ajshen</name></author>
	</entry>
	<entry>
		<id>https://info.stat.cmu.edu/index.php?title=VS_Code_Remote&amp;diff=699&amp;oldid=prev</id>
		<title>Ajshen: Created page with &quot; Using &#039;&#039;&#039;VS Code Remote Development&#039;&#039;&#039;, you can edit files, run visual breakpoint debuggers, and execute terminals directly on the remote server—while keeping the smooth, g...&quot;</title>
		<link rel="alternate" type="text/html" href="https://info.stat.cmu.edu/index.php?title=VS_Code_Remote&amp;diff=699&amp;oldid=prev"/>
		<updated>2026-06-26T05:11:53Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; Using &amp;#039;&amp;#039;&amp;#039;VS Code Remote Development&amp;#039;&amp;#039;&amp;#039;, you can edit files, run visual breakpoint debuggers, and execute terminals directly on the remote server—while keeping the smooth, g...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
Using &amp;#039;&amp;#039;&amp;#039;VS Code Remote Development&amp;#039;&amp;#039;&amp;#039;, you can edit files, run visual breakpoint debuggers, and execute terminals directly on the remote server—while keeping the smooth, graphical interface of your local laptop.&lt;br /&gt;
&lt;br /&gt;
This page covers the two primary workflows for connecting VS Code to the department and university servers.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #fff3cd; border-left: 5px solid #ffc107; padding: 15px; margin-bottom: 20px; margin-top: 15px; overflow: hidden;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Important: Choosing the Right Workflow&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
The method you use depends entirely on the server&amp;#039;s architecture. &amp;lt;br&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Workflow 1&amp;#039;&amp;#039;&amp;#039; is only for the Department Servers (Leviathans/Ghidorahs) which do not use a job scheduler. &amp;lt;br&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Workflow 2&amp;#039;&amp;#039;&amp;#039; is required for larger shared clusters (like Wright or PSC) that use the Slurm job scheduler. Never run VS Code directly on a Slurm login node!&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 1. Department Servers (Remote - SSH) ==&lt;br /&gt;
For department servers without Slurm scheduling, you can use the official Remote - SSH plugin to connect directly to the machine. This effectively starts a VS Code server instance on the Leviathan or Ghidorah node and links it to your local application.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #f8f9fa; border-left: 4px solid #005A9C; padding: 15px; margin-bottom: 10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Step-by-Step Setup:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
1. &amp;#039;&amp;#039;&amp;#039;Install the Extension:&amp;#039;&amp;#039;&amp;#039; Open your local VS Code. Go to the Extensions tab (&amp;lt;code&amp;gt;Ctrl+Shift+X&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;Cmd+Shift+X&amp;lt;/code&amp;gt;) and search for &amp;#039;&amp;#039;&amp;#039;Remote - SSH&amp;#039;&amp;#039;&amp;#039; (published by Microsoft). Install it.&amp;lt;br&amp;gt;&lt;br /&gt;
2. &amp;#039;&amp;#039;&amp;#039;Open the Command Palette:&amp;#039;&amp;#039;&amp;#039; Press &amp;lt;code&amp;gt;F1&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;Ctrl+Shift+P&amp;lt;/code&amp;gt; (Windows/Linux) / &amp;lt;code&amp;gt;Cmd+Shift+P&amp;lt;/code&amp;gt; (Mac).&amp;lt;br&amp;gt;&lt;br /&gt;
3. &amp;#039;&amp;#039;&amp;#039;Initialize Connection:&amp;#039;&amp;#039;&amp;#039; Type &amp;lt;code&amp;gt;Remote-SSH: Connect to Host...&amp;lt;/code&amp;gt; and press Enter. Select &amp;#039;&amp;#039;&amp;#039;+ Add New SSH Host...&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
4. &amp;#039;&amp;#039;&amp;#039;Enter SSH Command:&amp;#039;&amp;#039;&amp;#039; Type your SSH connection string. For the department servers, this will look like:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;ssh [userid]@leviathan1.stat.cmu.edu&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
5. &amp;#039;&amp;#039;&amp;#039;Connect &amp;amp; Authenticate:&amp;#039;&amp;#039;&amp;#039; Select your SSH configuration file to save the host. A new VS Code window will open. If prompted, select &amp;#039;&amp;#039;&amp;#039;Linux&amp;#039;&amp;#039;&amp;#039; as the target operating system. Enter your password when prompted.&amp;lt;br&amp;gt;&lt;br /&gt;
6. &amp;#039;&amp;#039;&amp;#039;Open Folder:&amp;#039;&amp;#039;&amp;#039; Click the &amp;quot;Open Folder&amp;quot; button in the Explorer pane to open your specific research directory on the server.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
🔗 &amp;#039;&amp;#039;&amp;#039;[https://www.youtube.com/watch?v=CDjqhAN5RqA Video Tutorial: Connect VS Code to Remote Servers via SSH]&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;For a visual walkthrough of installing the extension, setting up the host, and navigating the Remote Explorer panel.&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 2. Slurm Clusters (Remote Tunnels) ==&lt;br /&gt;
For massive clusters like Wright or PSC, you cannot simply SSH and start coding. The login node (the machine you first connect to) is strictly for submitting jobs; running heavy VS Code server processes there will drain resources and likely get your account suspended. &lt;br /&gt;
&lt;br /&gt;
Instead, you must request a compute node using Slurm, launch a VS Code Tunnel on that specific node, and connect to it locally. &amp;#039;&amp;#039;&amp;#039;Note: This guide assumes the &amp;lt;code&amp;gt;code&amp;lt;/code&amp;gt; CLI is already installed on the cluster.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #f8f9fa; border-left: 4px solid #dc3545; padding: 15px; margin-bottom: 10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Step-by-Step Setup:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
1. &amp;#039;&amp;#039;&amp;#039;SSH into the Login Node:&amp;#039;&amp;#039;&amp;#039; Open your standard terminal and SSH into the cluster.&amp;lt;br&amp;gt;&lt;br /&gt;
2. &amp;#039;&amp;#039;&amp;#039;Request an Interactive Compute Node:&amp;#039;&amp;#039;&amp;#039; Use &amp;lt;code&amp;gt;srun&amp;lt;/code&amp;gt; to request an interactive session with the resources you need. For example, to request 4 CPUs and 16GB of RAM for 2 hours:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;srun --job-name vscode --time=2:00:00 --mem-per-cpu=48GB --partition=statds --ntasks=1 --gres=gpu:1 --cpus-per-task=2 --pty code tunnel&lt;br /&gt;
&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
3. &amp;#039;&amp;#039;&amp;#039;Authenticate the Tunnel:&amp;#039;&amp;#039;&amp;#039; The terminal will output a secure link and an authentication code (usually linking to a GitHub or Microsoft account). Open this link in your local web browser and enter the provided code to link the session.&amp;lt;br&amp;gt;&lt;br /&gt;
4. &amp;#039;&amp;#039;&amp;#039;Connect to the Node:&amp;#039;&amp;#039;&amp;#039; The terminal will then provide a &amp;#039;&amp;#039;&amp;#039;vscode.dev/tunnel/...&amp;#039;&amp;#039;&amp;#039; URL. Open this URL in your local browser to access the full VS Code interface running directly on your allocated compute node.&amp;lt;br&amp;gt;&lt;br /&gt;
5. &amp;#039;&amp;#039;&amp;#039;Alternative (Local App):&amp;#039;&amp;#039;&amp;#039; If you prefer the desktop app over the browser, you can install the &amp;#039;&amp;#039;&amp;#039;Remote - Tunnels&amp;#039;&amp;#039;&amp;#039; extension in your local VS Code, sign in with the same account, and connect to the active tunnel listed in your Remote Explorer panel.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ajshen</name></author>
	</entry>
</feed>