<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mscneuro.neuro.uni-bremen.de/index.php?action=history&amp;feed=atom&amp;title=VS_Code_Working_remotely_via_ssh</id>
	<title>VS Code Working remotely via ssh - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mscneuro.neuro.uni-bremen.de/index.php?action=history&amp;feed=atom&amp;title=VS_Code_Working_remotely_via_ssh"/>
	<link rel="alternate" type="text/html" href="https://mscneuro.neuro.uni-bremen.de/index.php?title=VS_Code_Working_remotely_via_ssh&amp;action=history"/>
	<updated>2026-06-02T12:05:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://mscneuro.neuro.uni-bremen.de/index.php?title=VS_Code_Working_remotely_via_ssh&amp;diff=306&amp;oldid=prev</id>
		<title>Davrot at 15:44, 17 October 2025</title>
		<link rel="alternate" type="text/html" href="https://mscneuro.neuro.uni-bremen.de/index.php?title=VS_Code_Working_remotely_via_ssh&amp;diff=306&amp;oldid=prev"/>
		<updated>2025-10-17T15:44:36Z</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 15:44, 17 October 2025&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 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; 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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Top ==&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&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;Develop your code with [https://code.visualstudio.com/docs/remote/ssh VS code remotely via a ssh connection].&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;Develop your code with [https://code.visualstudio.com/docs/remote/ssh VS code remotely via a ssh connection].&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;!-- diff cache key wiki:diff:1.41:old-109:rev-306:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Davrot</name></author>
	</entry>
	<entry>
		<id>https://mscneuro.neuro.uni-bremen.de/index.php?title=VS_Code_Working_remotely_via_ssh&amp;diff=109&amp;oldid=prev</id>
		<title>Davrot: Created page with &quot; == Top == Develop your code with [https://code.visualstudio.com/docs/remote/ssh VS code remotely via a ssh connection].  Questions to [mailto:davrot@uni-bremen.de David Rotermund]  == Installation == We need to install the Remote ssh extension&lt;div class=&quot;figure&quot;&gt; File:98723h image0.png &lt;/div&gt;and these one too:&lt;div class=&quot;figure&quot;&gt;File:98723h image1.png &lt;/div&gt;However, the second one should be installed automatically.  == Configuration == &lt;div class=&quot;figure&quot;&gt; Fil...&quot;</title>
		<link rel="alternate" type="text/html" href="https://mscneuro.neuro.uni-bremen.de/index.php?title=VS_Code_Working_remotely_via_ssh&amp;diff=109&amp;oldid=prev"/>
		<updated>2025-10-14T15:36:29Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; == Top == Develop your code with [https://code.visualstudio.com/docs/remote/ssh VS code remotely via a ssh connection].  Questions to [mailto:davrot@uni-bremen.de David Rotermund]  == Installation == We need to install the Remote ssh extension&amp;lt;div class=&amp;quot;figure&amp;quot;&amp;gt; &lt;a href=&quot;/index.php/File:98723h_image0.png&quot; title=&quot;File:98723h image0.png&quot;&gt;File:98723h image0.png&lt;/a&gt; &amp;lt;/div&amp;gt;and these one too:&amp;lt;div class=&amp;quot;figure&amp;quot;&amp;gt;&lt;a href=&quot;/index.php/File:98723h_image1.png&quot; title=&quot;File:98723h image1.png&quot;&gt;File:98723h image1.png&lt;/a&gt; &amp;lt;/div&amp;gt;However, the second one should be installed automatically.  == Configuration == &amp;lt;div class=&amp;quot;figure&amp;quot;&amp;gt; Fil...&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;
== Top ==&lt;br /&gt;
Develop your code with [https://code.visualstudio.com/docs/remote/ssh VS code remotely via a ssh connection].&lt;br /&gt;
&lt;br /&gt;
Questions to [mailto:davrot@uni-bremen.de David Rotermund]&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
We need to install the Remote ssh extension&amp;lt;div class=&amp;quot;figure&amp;quot;&amp;gt;&lt;br /&gt;
[[File:98723h image0.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;and these one too:&amp;lt;div class=&amp;quot;figure&amp;quot;&amp;gt;[[File:98723h image1.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;However, the second one should be installed automatically.&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&amp;lt;div class=&amp;quot;figure&amp;quot;&amp;gt;&lt;br /&gt;
[[File:2022-04-01_17-17.png|image2]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;div class=&amp;quot;figure&amp;quot;&amp;gt;&lt;br /&gt;
[[File:2022-04-01_17-22.png|image3]]&lt;br /&gt;
&amp;lt;/div&amp;gt;Now you can enter your user and computer name / ip address of the ssh target:&amp;lt;div class=&amp;quot;figure&amp;quot;&amp;gt;&lt;br /&gt;
[[File:2022-04-01_17-24.png|image4]]&lt;br /&gt;
&amp;lt;/div&amp;gt;It asks where to store the information (i.e. ssh key). Select the one in your home directory:&amp;lt;div class=&amp;quot;figure&amp;quot;&amp;gt;&lt;br /&gt;
[[File:2022-04-01_17-25.png|image5]]&lt;br /&gt;
&amp;lt;/div&amp;gt;Now we can review the settings by clicking on “Open Config”:&amp;lt;div class=&amp;quot;figure&amp;quot;&amp;gt;&lt;br /&gt;
[[File:2022-04-01_17-25_1.png|image6]]&lt;br /&gt;
&amp;lt;/div&amp;gt;Or later by clicking here&amp;lt;div class=&amp;quot;figure&amp;quot;&amp;gt;&lt;br /&gt;
[[File:2022-04-01_17-28.png|image7]]&lt;br /&gt;
&amp;lt;/div&amp;gt;and then here&amp;lt;div class=&amp;quot;figure&amp;quot;&amp;gt;&lt;br /&gt;
[[File:2022-04-01_17-29.png|image8]]&lt;br /&gt;
&amp;lt;/div&amp;gt;In the moment my configuration looks like:&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;Host gate1&lt;br /&gt;
  HostName gate1&lt;br /&gt;
  User sshtest&amp;lt;/syntaxhighlight&amp;gt;Typical options:&lt;br /&gt;
&lt;br /&gt;
* HostName gate1: Can the the name or the IP of your ssh target&lt;br /&gt;
* User sshtest : Well, here you need to put your user name in.&lt;br /&gt;
* ForwardX11 yes : Allows you to view graphical from the other side&lt;br /&gt;
* Port 22 : This is the default port for the ssh connection. This can be also something else.&lt;br /&gt;
* XAuthLocation C:~1/VcXSrv/xauth.exe : In the case of a Windows 10/11, you need a X Window Server if you need to stream graphical windows to your local machine. Under Linux this is typically included and can be ignored. Under Windows you need a X Server. I tested the [https://sourceforge.net/projects/vcxsrv/ VcXsrv Windows X Server] sucessfully.&lt;br /&gt;
&lt;br /&gt;
Notes about the Windows 10/11 X Window Server: Last time I tested it, I had to add two Windows environment variables (you find the button “Environment Variables…” under system properties). Add under the User Variable section (The upper box under Environment Variables)&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;DISPLAY&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
with&lt;br /&gt;
&lt;br /&gt;
127.0.0.1:0.0&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;TMPDIR&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
will it with the value of variable TMP&lt;br /&gt;
&lt;br /&gt;
Also also the X Server needs to run. Means you have to start it if you want to use it… I used Multi Window Mode.&lt;br /&gt;
&lt;br /&gt;
== Using it ==&lt;br /&gt;
Select the connection you want:&amp;lt;div class=&amp;quot;figure&amp;quot;&amp;gt;&lt;br /&gt;
[[File:2022-04-01_17-40.png|image9]]&lt;br /&gt;
&amp;lt;/div&amp;gt;Enter your password:&amp;lt;div class=&amp;quot;figure&amp;quot;&amp;gt;&lt;br /&gt;
[[File:2022-04-01_17-41.png|image10]]&lt;br /&gt;
&amp;lt;/div&amp;gt;Be connected:&amp;lt;div class=&amp;quot;figure&amp;quot;&amp;gt;&lt;br /&gt;
[[File:2022-04-01_17-43_0.png|image11]]&lt;br /&gt;
&amp;lt;/div&amp;gt;The first time you make a connection to a system, you need to check if all extensions are there. Typically they are not. Just scroll through the list of “installed” extensions and click on install… again…&amp;lt;div class=&amp;quot;figure&amp;quot;&amp;gt;&lt;br /&gt;
[[File:2022-04-01_17-45.png|image12]]&lt;br /&gt;
&amp;lt;/div&amp;gt;Side note: You can use the terminal under VS code as a terminal running on the ssh target computer. Or in other word: You can use the terminal to create directories via mkdir and move files around. Or even more complicated programs:&amp;lt;div class=&amp;quot;figure&amp;quot;&amp;gt;&lt;br /&gt;
[[File:2022-04-01_17-52_0.png|image13]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Exchanging files between computers ==&lt;br /&gt;
There are many options to exchange files via ssh between computers. However [https://filezilla-project.org/download.php?type=client filezilla &amp;#039;&amp;#039;&amp;#039;client&amp;#039;&amp;#039;&amp;#039;]!!! is a nice too that is available for Windows and Linux alike. Many Linux distributions have Filezilla already in their package repositories.&lt;br /&gt;
&lt;br /&gt;
First time you start it, you want to got into the connection settings:&amp;lt;div class=&amp;quot;figure&amp;quot;&amp;gt;&lt;br /&gt;
[[File:2022-04-01_18-09_0.png|image14]]&lt;br /&gt;
&amp;lt;/div&amp;gt;Create a new connection and name the parameter setting accordingly:&amp;lt;div class=&amp;quot;figure&amp;quot;&amp;gt;&lt;br /&gt;
[[File:2022-04-01_18-11_0.png|image15]]&lt;br /&gt;
&amp;lt;/div&amp;gt;Now you need to put in the information about your ssh connection:&amp;lt;div class=&amp;quot;figure&amp;quot;&amp;gt;&lt;br /&gt;
[[File:2022-04-01_18-13_0.png|image16]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Switch to SFTP&lt;br /&gt;
* Enter the hostname or ip&lt;br /&gt;
* Enter the port (default is 22)&lt;br /&gt;
* Enter your user name&lt;br /&gt;
* Add you password or better set to ask for password&lt;br /&gt;
&lt;br /&gt;
Press OK to save the information.&lt;br /&gt;
&lt;br /&gt;
Now the configured connection is available:&amp;lt;div class=&amp;quot;figure&amp;quot;&amp;gt;&lt;br /&gt;
[[File:2022-04-01_18-16.png|image17]]&lt;br /&gt;
&amp;lt;/div&amp;gt;It will ask you for your password:&amp;lt;div class=&amp;quot;figure&amp;quot;&amp;gt;&lt;br /&gt;
[[File:2022-04-01_18-17.png|image18]]&lt;br /&gt;
&amp;lt;/div&amp;gt;And the first time you connect to the ssh server (or in the case the server was replaced by the admin) you will get this message:&amp;lt;div class=&amp;quot;figure&amp;quot;&amp;gt;&lt;br /&gt;
[[File:2022-04-01_18-17_1.png|image19]]&lt;br /&gt;
&amp;lt;/div&amp;gt;After OK you can shove files / directories from one side to the other.&amp;lt;div class=&amp;quot;figure&amp;quot;&amp;gt;&lt;br /&gt;
[[File:2022-04-01_18-20_0.png|image20]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Davrot</name></author>
	</entry>
</feed>