http://staros.tog.net/index.php?title=Using_Screen_for_cleaning_up_remote_SSH_access&feed=atom&action=historyUsing Screen for cleaning up remote SSH access - Revision history2024-03-29T08:23:45ZRevision history for this page on the wikiMediaWiki 1.37.0http://staros.tog.net/index.php?title=Using_Screen_for_cleaning_up_remote_SSH_access&diff=2134&oldid=prevHandyman at 02:04, 13 June 20112011-06-13T02:04:51Z<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 22:04, 12 June 2011</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l25">Line 25:</td>
<td colspan="2" class="diff-lineno">Line 25:</td></tr>
<tr><td class="diff-marker"></td><td style="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;"><br/></td><td class="diff-marker"></td><td style="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;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="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;"><div>Roughly, the meaning is that __x is to be replaced by ESC x for any letter x, and that __1 is to be replaced by ESC O P, etc.</div></td><td class="diff-marker"></td><td style="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;"><div>Roughly, the meaning is that __x is to be replaced by ESC x for any letter x, and that __1 is to be replaced by ESC O P, etc.</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="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;"><div>These replacements function as the corresponding ALT codes for StarOS.</div></td><td class="diff-marker" data-marker="+"></td><td style="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;"><div>These replacements function as the corresponding ALT <ins style="font-weight: bold; text-decoration: none;">and F-</ins>codes for StarOS.</div></td></tr>
<tr><td class="diff-marker"></td><td style="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;"><br/></td><td class="diff-marker"></td><td style="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;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="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;"><div>So I log in to the Linux or FreeBSD or MacOS box using ssh and then issue the command "screen ssh admin@ap.network.net" and during the ensuing session I can use __f as ALT-f, or __i as ALT-i, or __2 as <del style="font-weight: bold; text-decoration: none;">ALT-2</del>, etc. To benefit my smart-phone, I set up an alias so that "ss ap" evaluates to "screen ssh admin@ap.network.net".</div></td><td class="diff-marker" data-marker="+"></td><td style="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;"><div>So I log in to the Linux or FreeBSD or MacOS box using ssh and then issue the command "screen ssh admin@ap.network.net" and during the ensuing session I can use __f as ALT-f, or __i as ALT-i, or __2 as <ins style="font-weight: bold; text-decoration: none;">F2</ins>, etc. To benefit my smart-phone, I set up an alias so that "ss ap" evaluates to "screen ssh admin@ap.network.net".</div></td></tr>
</table>Handymanhttp://staros.tog.net/index.php?title=Using_Screen_for_cleaning_up_remote_SSH_access&diff=2133&oldid=prevHandyman at 02:36, 12 June 20112011-06-12T02:36:53Z<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 22:36, 11 June 2011</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l27">Line 27:</td>
<td colspan="2" class="diff-lineno">Line 27:</td></tr>
<tr><td class="diff-marker"></td><td style="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;"><div>These replacements function as the corresponding ALT codes for StarOS.</div></td><td class="diff-marker"></td><td style="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;"><div>These replacements function as the corresponding ALT codes for StarOS.</div></td></tr>
<tr><td class="diff-marker"></td><td style="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;"><br/></td><td class="diff-marker"></td><td style="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;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="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;"><div>So I log in to the Linux or FreeBSD or MacOS box using ssh and then issue the command "screen ssh admin@ap.network.net" and during the ensuing session I can use __f as ALT-f, or __i as ALT-i, or __2 as ALT-2, etc.</div></td><td class="diff-marker" data-marker="+"></td><td style="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;"><div>So I log in to the Linux or FreeBSD or MacOS box using ssh and then issue the command "screen ssh admin@ap.network.net" and during the ensuing session I can use __f as ALT-f, or __i as ALT-i, or __2 as ALT-2, etc<ins style="font-weight: bold; text-decoration: none;">. To benefit my smart-phone, I set up an alias so that "ss ap" evaluates to "screen ssh admin@ap.network.net"</ins>.</div></td></tr>
</table>Handymanhttp://staros.tog.net/index.php?title=Using_Screen_for_cleaning_up_remote_SSH_access&diff=2132&oldid=prevHandyman at 02:33, 12 June 20112011-06-12T02:33:48Z<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 22:33, 11 June 2011</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l27">Line 27:</td>
<td colspan="2" class="diff-lineno">Line 27:</td></tr>
<tr><td class="diff-marker"></td><td style="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;"><div>These replacements function as the corresponding ALT codes for StarOS.</div></td><td class="diff-marker"></td><td style="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;"><div>These replacements function as the corresponding ALT codes for StarOS.</div></td></tr>
<tr><td class="diff-marker"></td><td style="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;"><br/></td><td class="diff-marker"></td><td style="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;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="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;"><div>So I log in to the Linux or FreeBSD or MacOS box using ssh and then issue the command "screen ssh <del style="font-weight: bold; text-decoration: none;">myaccesspoint</del>.<del style="font-weight: bold; text-decoration: none;">mynetwork</del>.net" and during the ensuing session I can use __f as ALT-f, or __i as ALT-i, or __2 as ALT-2, etc.</div></td><td class="diff-marker" data-marker="+"></td><td style="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;"><div>So I log in to the Linux or FreeBSD or MacOS box using ssh and then issue the command "screen ssh <ins style="font-weight: bold; text-decoration: none;">admin@ap</ins>.<ins style="font-weight: bold; text-decoration: none;">network</ins>.net" and during the ensuing session I can use __f as ALT-f, or __i as ALT-i, or __2 as ALT-2, etc.</div></td></tr>
<!-- diff cache key staroswiki:diff::1.12:old-2131:rev-2132 -->
</table>Handymanhttp://staros.tog.net/index.php?title=Using_Screen_for_cleaning_up_remote_SSH_access&diff=2131&oldid=prevHandyman at 01:44, 12 June 20112011-06-12T01:44:58Z<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 21:44, 11 June 2011</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l10">Line 10:</td>
<td colspan="2" class="diff-lineno">Line 10:</td></tr>
<tr><td class="diff-marker"></td><td style="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;"><div>You can customize the details and usage to suit your situation.</div></td><td class="diff-marker"></td><td style="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;"><div>You can customize the details and usage to suit your situation.</div></td></tr>
<tr><td class="diff-marker"></td><td style="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;"><br/></td><td class="diff-marker"></td><td style="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;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="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;"><div>My biggest problem <del style="font-weight: bold; text-decoration: none;">with </del>my Android smart-phone which has no mouse is generating the ALT codes. So I decided that a prefix of __ (a pair of underscores) should act like ALT.</div></td><td class="diff-marker" data-marker="+"></td><td style="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;"><div>My biggest problem <ins style="font-weight: bold; text-decoration: none;">using ConnectBot on </ins>my Android smart-phone which has no mouse is generating the ALT codes.</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="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;"><div>So I decided that a prefix of __ (a pair of underscores) should act like ALT.</div></td></tr>
<tr><td class="diff-marker"></td><td style="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;"><div>Thus __i would generate ALT-i and open up the "interfaces" menu. The following .screenrc file accomplishes that:</div></td><td class="diff-marker"></td><td style="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;"><div>Thus __i would generate ALT-i and open up the "interfaces" menu. The following .screenrc file accomplishes that:</div></td></tr>
<tr><td class="diff-marker"></td><td style="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;"><br/></td><td class="diff-marker"></td><td style="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;"><br/></td></tr>
</table>Handymanhttp://staros.tog.net/index.php?title=Using_Screen_for_cleaning_up_remote_SSH_access&diff=2130&oldid=prevHandyman at 01:35, 12 June 20112011-06-12T01:35:47Z<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 21:35, 11 June 2011</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l22">Line 22:</td>
<td colspan="2" class="diff-lineno">Line 22:</td></tr>
<tr><td class="diff-marker"></td><td style="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;"><div> bindkey -t __3 stuff "\033OR"</div></td><td class="diff-marker"></td><td style="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;"><div> bindkey -t __3 stuff "\033OR"</div></td></tr>
<tr><td class="diff-marker"></td><td style="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;"><div> bindkey -t __4 stuff "\033OS"</div></td><td class="diff-marker"></td><td style="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;"><div> bindkey -t __4 stuff "\033OS"</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="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;"><div><del style="font-weight: bold; text-decoration: none;"> (etc)</del></div></td><td colspan="2" class="diff-side-added"></td></tr>
<tr><td class="diff-marker"></td><td style="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;"><br/></td><td class="diff-marker"></td><td style="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;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="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;"><div>Roughly, the meaning is that __x is to be replaced by ESC x for any letter x, and that __1 is to be replaced by ESC O P, etc.</div></td><td class="diff-marker"></td><td style="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;"><div>Roughly, the meaning is that __x is to be replaced by ESC x for any letter x, and that __1 is to be replaced by ESC O P, etc.</div></td></tr>
</table>Handymanhttp://staros.tog.net/index.php?title=Using_Screen_for_cleaning_up_remote_SSH_access&diff=2129&oldid=prevHandyman: Created page with "Sometimes your access to SSH for StarOS management purposes is inadequate due to the platform you are working from. For example, on an Apple laptop, the Terminal application is u..."2011-06-12T01:33:27Z<p>Created page with "Sometimes your access to SSH for StarOS management purposes is inadequate due to the platform you are working from. For example, on an Apple laptop, the Terminal application is u..."</p>
<p><b>New page</b></p><div>Sometimes your access to SSH for StarOS management purposes is inadequate due to the platform you are working from.<br />
For example, on an Apple laptop, the Terminal application is unable to forward mouse actions to StarOS.<br />
The fix in that case is to use xterm instead of Terminal.<br />
But in other situations, the problems are more profound, such as in working from a smart-phone where the available keyboard<br />
fails to define some important keys.<br />
<br />
Solutions to keyboard and key-mapping problems can be crafted using the Unix "screen" utility which is available on Linux, FreeBSD, MacOS, etc.<br />
The idea is to first ssh to a host where you have screen set up, and then ssh through screen from there to your StarOS system.<br />
Screen has wide-ranging powers, and we look only at a few possibilities here through a particular example setup.<br />
You can customize the details and usage to suit your situation.<br />
<br />
My biggest problem with my Android smart-phone which has no mouse is generating the ALT codes. So I decided that a prefix of __ (a pair of underscores) should act like ALT.<br />
Thus __i would generate ALT-i and open up the "interfaces" menu. The following .screenrc file accomplishes that:<br />
<br />
bindkey -t __a stuff "\033a"<br />
bindkey -t __b stuff "\033b"<br />
(etc)<br />
bindkey -t __z stuff "\033z"<br />
<br />
bindkey -t __1 stuff "\033OP"<br />
bindkey -t __2 stuff "\033OQ"<br />
bindkey -t __3 stuff "\033OR"<br />
bindkey -t __4 stuff "\033OS"<br />
(etc)<br />
<br />
Roughly, the meaning is that __x is to be replaced by ESC x for any letter x, and that __1 is to be replaced by ESC O P, etc.<br />
These replacements function as the corresponding ALT codes for StarOS.<br />
<br />
So I log in to the Linux or FreeBSD or MacOS box using ssh and then issue the command "screen ssh myaccesspoint.mynetwork.net" and during the ensuing session I can use __f as ALT-f, or __i as ALT-i, or __2 as ALT-2, etc.</div>Handyman