<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=3479&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / ssh terminals and how to differentiate between them]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3479</link>
		<description><![CDATA[The most recent posts in ssh terminals and how to differentiate between them.]]></description>
		<lastBuildDate>Mon, 04 May 2020 16:10:38 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: ssh terminals and how to differentiate between them]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=21422#p21422</link>
			<description><![CDATA[<p>I&#039;ve got several systems I administer by ssh&#039;ing from my main system so I had this problem too.</p><p>My main system sets the window title to match the prompt, eg to the following:</p><div class="codebox"><pre><code>chris@rigel:~/bin</code></pre></div><p>But most of the other systems don&#039;t set it. As a work around I created a directory named after each system on my main system, cd&#039;ed&#160; into it and ssh&#039;ed from there onto the other system. So the window title says something like:</p><div class="codebox"><pre><code>chris@rigel:~/vega</code></pre></div><p>which tags the window as being the one ssh&#039;ed onto vega. It&#039;s not ideal but it helps.</p><p>Also on all my systems the prompt says the hostname as well as the current directory. Train yourself to look at it before doing anything. You might be able to set the prompt to different colours on different systems (although I prefer green prompt most of the time, but red if I need to run as root).</p><p>Chris</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Mon, 04 May 2020 16:10:38 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=21422#p21422</guid>
		</item>
		<item>
			<title><![CDATA[Re: ssh terminals and how to differentiate between them]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=21418#p21418</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>... the following line in all your <span class="bbc">~/.zshrc</span> (or <span class="bbc">~/.bashrc</span> perhaps) </p><div class="codebox"><pre><code>function title() { echo -n &quot;\033]0;$1\007&quot;; }</code></pre></div><p>and then use</p><div class="codebox"><pre><code>$ title Bendigo</code></pre></div><p> to change the terminal title.</p></div></blockquote></div><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Changing the prompt (PS1) is another option ...</p></div></blockquote></div><p>Thanks to both. =-)<br />I&#039;ll have a look at how these wotk.</p><p>In the meanwhile I&#039;ll have to be extra carefull.</p><p>Cheers,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 04 May 2020 12:22:05 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=21418#p21418</guid>
		</item>
		<item>
			<title><![CDATA[Re: ssh terminals and how to differentiate between them]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=21414#p21414</link>
			<description><![CDATA[<p>Changing the prompt (PS1) is another option, for example: <a href="https://unix.stackexchange.com/questions/217270/change-ps1-color-when-connected-to-other-host-via-ssh" rel="nofollow">https://unix.stackexchange.com/question … st-via-ssh</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Mon, 04 May 2020 11:23:54 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=21414#p21414</guid>
		</item>
		<item>
			<title><![CDATA[Re: ssh terminals and how to differentiate between them]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=21405#p21405</link>
			<description><![CDATA[<p>You can but the following line in all your <span class="bbc">~/.zshrc</span> (or <span class="bbc">~/.bashrc</span> perhaps) </p><div class="codebox"><pre><code>function title() { echo -n &quot;\033]0;$1\007&quot;; }</code></pre></div><p>and then use</p><div class="codebox"><pre><code>$ title Bendigo</code></pre></div><p> to change the terminal title. Endless possibilities....</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Mon, 04 May 2020 01:14:44 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=21405#p21405</guid>
		</item>
		<item>
			<title><![CDATA[ssh terminals and how to differentiate between them]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=21402#p21402</link>
			<description><![CDATA[<p>Hello:</p><p>Those who are more savvy than I am in command line work and SSL&#039;ing into other installations probably have been through this.</p><p>I am slowly learning to use ssh, which I find quite entertaining but more than once I&#039;ve &#039;almost&#039; goofed up and done something in the local terminal instead of the other terminal I had open to a Raspberry Pi also running Devuan ascii.</p><p>Is there a way to eg: when I open a ssh connection, have the terminal automatically show <em>something</em> that would differentiate it from a local one.<br />eg: the title bar or font colours.</p><p>I&#039;ve looked at the terminal configuration settings but found nothing.</p><p>Thanks in advance,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 04 May 2020 00:07:26 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=21402#p21402</guid>
		</item>
	</channel>
</rss>
