<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.sternwarte.uni-erlangen.de/wiki/index.php?action=history&amp;feed=atom&amp;title=SSH</id>
	<title>SSH - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?action=history&amp;feed=atom&amp;title=SSH"/>
	<link rel="alternate" type="text/html" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=SSH&amp;action=history"/>
	<updated>2026-04-14T10:55:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.7</generator>
	<entry>
		<id>https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=SSH&amp;diff=798&amp;oldid=prev</id>
		<title>Sokolova-lapa at 14:02, 11 April 2018</title>
		<link rel="alternate" type="text/html" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=SSH&amp;diff=798&amp;oldid=prev"/>
		<updated>2018-04-11T14:02:11Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&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 14:02, 11 April 2018&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-l60&quot; &gt;Line 60:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 60:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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;=== Windows ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;=== Windows ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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;/td&gt;&lt;td class='diff-marker'&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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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;If your local computer is running Windows as operating system you need to download and install a SSH-client, such as [[http://www.putty.org/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;|&lt;/del&gt;PuTTY]]. A guide how to use Putty is available here:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;If your local computer is running Windows as operating system you need to download and install a SSH-client, such as [[http://www.putty.org/ PuTTY]]. A guide how to use Putty is available here:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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;[[http://the.earth.li/~sgtatham/putty/0.64/htmldoc/Chapter2.html#gs]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;[[http://the.earth.li/~sgtatham/putty/0.64/htmldoc/Chapter2.html#gs]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sokolova-lapa</name></author>
	</entry>
	<entry>
		<id>https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=SSH&amp;diff=797&amp;oldid=prev</id>
		<title>Sokolova-lapa: Created page with &quot;  Category:Working Remotely  = Working remotely using SSH =  If you want to connect to a machine at Remeis from remote you can use, e.g., SSH. This is a secured connection...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=SSH&amp;diff=797&amp;oldid=prev"/>
		<updated>2018-04-11T14:00:20Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;  &lt;a href=&quot;/wiki/index.php/Category:Working_Remotely&quot; title=&quot;Category:Working Remotely&quot;&gt;Category:Working Remotely&lt;/a&gt;  = Working remotely using SSH =  If you want to connect to a machine at Remeis from remote you can use, e.g., SSH. This is a secured connection...&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;
&lt;br /&gt;
[[Category:Working Remotely]]&lt;br /&gt;
&lt;br /&gt;
= Working remotely using SSH =&lt;br /&gt;
&lt;br /&gt;
If you want to connect to a machine at Remeis from remote you can use, e.g., SSH. This is a secured connection, which forwards a shell on the machine to your local computer.&lt;br /&gt;
&lt;br /&gt;
=== Linux ===&lt;br /&gt;
&lt;br /&gt;
On a linux system, you need to have SSH installed. On Debian based system, such as Ubuntu, that can be achieved by&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ssh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Once SSH is installed, just type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh username@constellation.sternwarte.uni-erlangen.de&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
into your local shell. Replace &amp;lt;i&amp;gt;username&amp;lt;/i&amp;gt; by your login at Remeis and &amp;lt;i&amp;gt;constellation&amp;lt;/i&amp;gt; by the name of the machine at Remeis, e.g., leo. You will be then asked by your password. You may use [[SSH-Keys|SSH-Keys]] to avoid entering you password.&lt;br /&gt;
&lt;br /&gt;
It is also possible to enabled X11 forwarding with the -X option, which allows you to open window-based applications, such as &amp;lt;i&amp;gt;konqueror&amp;lt;/i&amp;gt; or &amp;lt;i&amp;gt;pgplot&amp;lt;/i&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh -X username@constellation.sternwarte.uni-erlangen.de&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
In that case the window opens at your local machine. Be aware that X11 forwarding requires a lot of bandwidth, which will slow down the windows and any actions you do significantly. To slightly increase the speed you can choose to compress the commands between bots machines via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh -X -C username@constellation.sternwarte.uni-erlangen.de&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== SSH-Keys ====&lt;br /&gt;
&lt;br /&gt;
To avoid typing in your password at the remove machine every time you log in, you might consider installing [[SSH-Keys|SSH-Keys]].&lt;br /&gt;
&lt;br /&gt;
==== Screen ====&lt;br /&gt;
&lt;br /&gt;
Sometimes, a ssh session will terminate due to the error &amp;quot;Write failed: broken pipe&amp;quot; or something similar. &lt;br /&gt;
As this can have various reasons, the best is to use &amp;lt;code&amp;gt;screen&amp;lt;/code&amp;gt; in any case.&lt;br /&gt;
This allows you to attach and detach a running remote terminal session at any time. &lt;br /&gt;
This way, you can run a job on screen, detach the session, switch off the laptop, and resume this remote session later. &lt;br /&gt;
&lt;br /&gt;
To start the screen session type&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
screen&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To detach it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Cntr-a-d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To resume it later:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
screen -r -d&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The only disadvantage (unable to scroll back) is no, if you add this to your ~/.screenrc:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
termcapinfo xterm ti@:te@                                                                                   &lt;br /&gt;
termcapinfo xterm-color ti@:te@  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Windows ===&lt;br /&gt;
&lt;br /&gt;
If your local computer is running Windows as operating system you need to download and install a SSH-client, such as [[http://www.putty.org/|PuTTY]]. A guide how to use Putty is available here:&lt;br /&gt;
[[http://the.earth.li/~sgtatham/putty/0.64/htmldoc/Chapter2.html#gs]]&lt;/div&gt;</summary>
		<author><name>Sokolova-lapa</name></author>
	</entry>
</feed>