<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/xsl" href="/static/rss.xsl"?>
<!-- name="generator" content="blosxom/2.1.2+dev" -->
<rss version="2.0"
     xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:cc="http://web.resource.org/cc/"
     xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:wfw="http://wellformedweb.org/CommentAPI/" >
  <channel>
    <!-- RSS required -->
    <title>Blogging is futile   </title>
    <!-- <link>http://noone.org/blog</link> -->
    <description>Yet another Blosxom weblog from someone who promised himself to never start blogging - since blogging is futile.</description>

    <!-- RSS optional -->
    <pubDate>Mon, 21 May 2012 13:45:25 +0200</pubDate>
    <lastBuildDate>Mon, 21 May 2012 13:45:25 +0200</lastBuildDate>
    <copyright>&amp;copy; 2005-2008 by Axel Beckert. Content licensed under the Creative Commons NC SA 2.0 DE License. Some rights reserved.</copyright>
    <language>en</language>
    <managingEditor>abe+blog@deuxchevaux.org (Axel Beckert)</managingEditor>
    <webMaster>abe+blog@deuxchevaux.org (Axel Beckert)</webMaster>
    <generator>blosxom/2.1.2+dev</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>42</ttl>
    <image>
        <url>http://noone.org/static/XTaran1.3t.png</url>
        <title>Hackergotchi: Axel "XTaran" Beckert</title>
        <link>http://noone.org/blog</link>
        <width>102</width>
        <height>104</height>
    </image>

    <!-- Dublin Core -->
<!--
    <dc:publisher>Axel Beckert (abe+blog@deuxchevaux.org)</dc:publisher>
    <dc:rights>&copy; 2005-2008 by Axel Beckert. Content licensed under the Creative Commons NC SA 2.0 DE License. Some rights reserved.</dc:rights>
    <dc:language>de</dc:language>
    <dc:language>en</dc:language>
    <dc:title>Blogging is futile   </dc:title>
    <dc:subject>Rants and brain dumps about Debian, the Web, old Hardware, old Citroëns and the daily life of an ETHZ system administrator</dc:subject>
    <dc:description>Yet another Blosxom weblog from someone who promised himself to never start blogging - since blogging is futile.</dc:description>
-->

    <!-- Others -->
    <admin:generatorAgent rdf:resource="http://blosxom.sourceforge.net/" />
    <admin:errorReportsTo rdf:resource="mailto:abe+blog@deuxchevaux.org" />
    <cc:license rdf:resource="http://creativecommons.org/licenses/by-nc-sa/2.0/de/">http://creativecommons.org/licenses/by-nc-sa/2.0/de/</cc:license>

  <item>
    <title>Tools for CLI Road Warriors: Hidden Terminals</title>
    <slash:department>Terminals-where-you-don't-expect-them</slash:department>
    <slash:section>English &amp;raquo; Computer &amp;raquo; Mobile</slash:section>
    <link>http://noone.org/blog/English/Computer/Mobile/Hidden%2520Terminals.html</link>
    <guid isPermaLink="true">http://noone.org/blog/English/Computer/Mobile/Hidden%2520Terminals.html</guid>
    <pubDate>Wed, 04 Apr 2012 00:51:20 +0200</pubDate>
    <author>abe+blog@deuxchevaux.org (Axel Beckert)</author>
    <description>
Some networks have no connection to the outside except that they allow
surfing through an &lt;acronym title=&quot;Hot Tits Transport Pr0nocol (Ulrich Schwarz)&quot;&gt;HTTP&lt;/acronym&gt;(S) proxy. Sometimes you are happy and the
HTTPS port (443) is unrestricted. The following server-side tools
allow you to exploit these weaknesses and get you a shell on your
server.

&lt;/p&gt;&lt;h4&gt;sslh&lt;/h4&gt;&lt;p&gt;

&lt;a href=&quot;http://www.rutschle.net/tech/sslh.shtml&quot; class=&quot;ext&quot;
&gt;sslh&lt;/a&gt; is an &lt;acronym title=&quot;Secure Shell&quot;&gt;SSH&lt;/acronym&gt;/SSL multiplexor. If a client connects to sslh, it
checks if the clients speaks the &lt;acronym title=&quot;Secure Shell&quot;&gt;SSH&lt;/acronym&gt; or the SSL protocol and then
passes the connection to the according real port of SSL or some SSL
enabled service, e.g. an HTTPS, &lt;a href=&quot;http://openvpn.net/&quot; class=&quot;ext&quot;&gt;OpenVPN&lt;/a&gt;, &lt;a class=&quot;ext&quot;
href=&quot;http://www.tinc-vpn.org/&quot; &gt;Tinc&lt;/a&gt; or &lt;acronym title=&quot;Extensible Messaging and Presence Protocol&quot;&gt;XMPP&lt;/acronym&gt; server. That way
it&amp;#8217;s possible to connect to one of these services &lt;em&gt;and&lt;/em&gt; &lt;acronym title=&quot;Secure Shell&quot;&gt;SSH&lt;/acronym&gt; on
the same port.

&lt;/p&gt;&lt;p&gt;

The usual scenario where this daemon is useful are firewalls which
block &lt;acronym title=&quot;Secure Shell&quot;&gt;SSH&lt;/acronym&gt;, force &lt;acronym title=&quot;Hot Tits Transport Pr0nocol (Ulrich Schwarz)&quot;&gt;HTTP&lt;/acronym&gt; to go through a proxy, but allow HTTPS
connections without restriction. In that case you let sslh listen on
the HTTPS port (443) and to move the real HTTPS server (e.g. &lt;a href=&quot;http://httpd.apache.org/&quot; class=&quot;ext&quot;&gt;Apache&lt;/a&gt;)
to listen on either a different port number (e.g. 442, 444 or 8443) or
on another &lt;acronym title=&quot;Internet Protocol&quot;&gt;IP&lt;/acronym&gt; address, e.g. on localhost, port 443.

&lt;/p&gt;&lt;p&gt;

On an &lt;a href=&quot;http://www.debian.org/&quot; class=&quot;ext&quot;&gt;Debian&lt;/a&gt; or &lt;a href=&quot;http://www.ubuntu.com/&quot; class=&quot;ext&quot;&gt;Ubuntu&lt;/a&gt; based Apache HTTPS server, you just have to do
the following to run Apache on port 442 and sslh on port 443 instead:

&lt;/p&gt;&lt;ol&gt;

&lt;li&gt;&lt;code&gt;apt-get install sslh&lt;/code&gt; as root.&lt;/li&gt;

&lt;li&gt;Edit &lt;code class=&quot;file&quot;&gt;/etc/default/sslh&lt;/code&gt;, change
&lt;code&gt;RUN=no&lt;/code&gt; to &lt;code&gt;RUN=yes&lt;/code&gt; and &lt;code&gt;--ssl
127.0.0.1:443&lt;/code&gt; to &lt;code&gt;--ssl 127.0.0.1:442&lt;/code&gt;.&lt;/li&gt;

&lt;li&gt;Edit &lt;code class=&quot;file&quot;&gt;/etc/apache2/ports.conf&lt;/code&gt; and all
files in &lt;code class=&quot;file&quot;&gt;/etc/apache2/sites-available/&lt;/code&gt; which
contain a reference to port 443 (which is only &lt;code
class=&quot;file&quot;&gt;/etc/apache2/sites-available/default-ssl.conf&lt;/code&gt; in
the default configuration) and change all occurrences of
&lt;code&gt;443&lt;/code&gt; to &lt;code&gt;442&lt;/code&gt;.&lt;/li&gt;

&lt;li&gt;&lt;code class=&quot;command&quot;&gt;service apache2 restart&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code class=&quot;command&quot;&gt;service sslh start&lt;/code&gt;&lt;/li&gt;

&lt;/ol&gt;&lt;p&gt;

Now you should be able to ssh to your server on port 443 (&lt;code
class=&quot;command&quot; &gt;ssh -p 443 your.server.example.org&lt;/code&gt;) while
still being able to surf to
&lt;code&gt;https://your.server.example.org/&lt;/code&gt;.

&lt;/p&gt;&lt;p&gt;

sslh works as threaded or as preforking daemon, or via inetd. It also
honors tcpwrapper configurations for sshd in &lt;code
class=&quot;file&quot;&gt;/etc/hosts.allow&lt;/code&gt; and &lt;code
class=&quot;file&quot;&gt;/etc/hosts.deny&lt;/code&gt;.

&lt;/p&gt;&lt;p&gt;

sslh is available as port or package at least in &lt;a href=&quot;http://www.gentoo.org/&quot; class=&quot;ext&quot;&gt;Gentoo&lt;/a&gt;, in &lt;a href=&quot;http://www.freebsd.org/&quot; class=&quot;ext&quot;&gt;FreeBSD&lt;/a&gt;,
&lt;a class=&quot;ext&quot; href=&quot;http://packages.debian.org/sslh&quot;&gt;in Debian&lt;/a&gt; and &lt;a href=&quot;http://packages.ubuntu.com/sslh&quot;
class=&quot;ext&quot; &gt;in Ubuntu&lt;/a&gt;.

&lt;/p&gt;&lt;h4&gt;AjaxTerm&lt;/h4&gt;&lt;p&gt;

A completely different approach takes &lt;a class=&quot;ext&quot;
href=&quot;http://antony.lesuisse.org/software/ajaxterm/&quot; &gt;AjaxTerm&lt;/a&gt;. It
provides a terminal inside a web browser with login and ssh being its
server-side backend.

&lt;/p&gt;&lt;p&gt;

Properly safe-guarded by HTTPS plus maybe &lt;acronym title=&quot;Hot Tits Transport Pr0nocol (Ulrich Schwarz)&quot;&gt;HTTP&lt;/acronym&gt; based authentication
this can be an interesting emergency alternative to the more common
&amp;mdash; but also more often blocked &amp;mdash; remote login mechanisms.

&lt;/p&gt;&lt;p&gt;

AjaxTerm is available as package at least &lt;a class=&quot;ext&quot; href=&quot;http://packages.debian.org/ajaxterm&quot;&gt;in Debian&lt;/a&gt;
and &lt;a class=&quot;ext&quot; href=&quot;http://packages.ubuntu.com/ajaxterm&quot; &gt;in
Ubuntu&lt;/a&gt;.

&lt;/p&gt;&lt;p align=&quot;center&quot;&gt;&lt;small&gt;

Happily I never were forced to use either of them myself. :-)

&lt;/small&gt;</description>
    <comments>http://noone.org/blog/English/Computer/Mobile/Hidden%2520Terminals.futile#comments</comments>
    <slash:comments>5</slash:comments>
    <dc:language>en</dc:language>
    <category domain="http://noone.org/blog/tags/AJAX">AJAX</category>
<category domain="http://noone.org/blog/tags/AjaxTerm">AjaxTerm</category>
<category domain="http://noone.org/blog/tags/Apache">Apache</category>
<category domain="http://noone.org/blog/tags/Debian">Debian</category>
<category domain="http://noone.org/blog/tags/HTTPS">HTTPS</category>
<category domain="http://noone.org/blog/tags/libwrap">libwrap</category>
<category domain="http://noone.org/blog/tags/OpenVPN">OpenVPN</category>
<category domain="http://noone.org/blog/tags/SSH">SSH</category>
<category domain="http://noone.org/blog/tags/SSL">SSL</category>
<category domain="http://noone.org/blog/tags/sslh">sslh</category>
<category domain="http://noone.org/blog/tags/tcpd">tcpd</category>
<category domain="http://noone.org/blog/tags/tcpwrapper">tcpwrapper</category>
<category domain="http://noone.org/blog/tags/Ubuntu">Ubuntu</category>
<category domain="http://noone.org/blog/tags/XMPP">XMPP</category>

  </item>
  <item>
    <title>Tools for CLI Road Warriors: Tunnels</title>
    <slash:department>I'll-Tunnel-My-Way-Home</slash:department>
    <slash:section>English &amp;raquo; Computer &amp;raquo; Mobile</slash:section>
    <link>http://noone.org/blog/English/Computer/Mobile/Tunneling.html</link>
    <guid isPermaLink="true">http://noone.org/blog/English/Computer/Mobile/Tunneling.html</guid>
    <pubDate>Thu, 22 Mar 2012 19:49:10 +0100</pubDate>
    <author>abe+blog@deuxchevaux.org (Axel Beckert)</author>
    <description>
Sometime the network you&amp;#8217;re connected to is either untrusted (e.g.
wireless) or castrated in some way. In both cases you want a tunnel to
your trusted home base.

&lt;/p&gt;&lt;p&gt;

Following I&amp;#8217;ll show you three completely different tunneling tools
which may helpful while travelling.

&lt;/p&gt;&lt;h4&gt;sshuttle&lt;/h4&gt;&lt;p&gt;

&lt;a href=&quot;https://github.com/apenwarr/sshuttle/&quot; class=&quot;ext&quot;
&gt;sshuttle&lt;/a&gt; is a tool somewhere in between of automatic port forward
and VPN. It tunnels arbitrary TCP connections and &lt;acronym title=&quot;Domain Name Service&quot;&gt;DNS&lt;/acronym&gt; through an &lt;acronym title=&quot;Secure Shell&quot;&gt;SSH&lt;/acronym&gt;
tunnel without requiring root access on the remote end of the &lt;acronym title=&quot;Secure Shell&quot;&gt;SSH&lt;/acronym&gt;
connection.

&lt;/p&gt;&lt;p&gt;

So it&amp;#8217;s perfect for redirecting most of your traffic through an &lt;acronym title=&quot;Secure Shell&quot;&gt;SSH&lt;/acronym&gt;
tunnel to your favourite &lt;acronym title=&quot;Secure Shell&quot;&gt;SSH&lt;/acronym&gt; server, e.g. to ensure your local privacy
when you are online via a public, unencrypted &lt;acronym title=&quot;Wireless Local Area Network&quot;&gt;WLAN&lt;/acronym&gt; (i.e. easy to sniff
for everyone).

&lt;/p&gt;&lt;p&gt;

It runs on &lt;a href=&quot;http://www.kernel.org/&quot; class=&quot;ext&quot;&gt;Linux&lt;/a&gt; and MacOS X and only needs a &lt;a href=&quot;http://www.python.org/&quot; class=&quot;ext&quot;&gt;Python&lt;/a&gt; interpreter on
the remote side. Requires root access (usually via sudo) on the client
side, though.

&lt;/p&gt;&lt;p&gt;

It&amp;#8217;s currently available at least &lt;a class=&quot;ext&quot; href=&quot;http://packages.debian.org/sshuttle&quot;&gt;in Debian Unstable
and Testing (Wheezy)&lt;/a&gt; as well as in &lt;a class=&quot;ext&quot;
href=&quot;http://packages.ubuntu.com/sshuttle&quot; &gt;Ubuntu since 11.04 Natty&lt;/a&gt;.

&lt;/p&gt;&lt;h4&gt;Miredo&lt;/h4&gt;&lt;p&gt;

&lt;a href=&quot;http://www.remlab.net/miredo/&quot; class=&quot;ext&quot; &gt;Miredo&lt;/a&gt; is an
free and open-source implementation of Microsoft&amp;#8217;s NAT-traversing
Teredo IPv6 tunneling protocol for at least Linux, &lt;a href=&quot;http://www.freebsd.org/&quot; class=&quot;ext&quot;&gt;FreeBSD&lt;/a&gt;, &lt;a href=&quot;http://www.netbsd.org/&quot; class=&quot;ext&quot;&gt;NetBSD&lt;/a&gt; and
MacOS X.

&lt;/p&gt;&lt;p&gt;

Miredo includes not only a Teredo client but also a Teredo server
implementation. The developer of Miredo also runs a public Miredo
server, so you don&amp;#8217;t even need to install a server somewhere. If you
run &lt;a href=&quot;http://www.debian.org/&quot; class=&quot;ext&quot;&gt;Debian&lt;/a&gt; or &lt;a href=&quot;http://www.ubuntu.com/&quot; class=&quot;ext&quot;&gt;Ubuntu&lt;/a&gt; you just need to do &lt;code&gt;&lt;a class=&quot;ext&quot; href=&quot;http://packages.debian.org/miredo&quot;&gt;apt-get
install miredo&lt;/a&gt;&lt;/code&gt; as root and you have IPv6 connectivity. It&amp;#8217;s
that easy.

&lt;/p&gt;&lt;p&gt;

So it&amp;#8217;s perfect to get a dynamic IPv6 tunnel for your laptop or mobile
phone independently where you are and without the need to register any
IPv6 tunnel or configure the Miredo client.

&lt;/p&gt;&lt;p&gt;

I usually use Miredo on my netbooks to be able to access my boxes at
home (which are behind an IPv4 NAT router which is also an SixXS IPv6
tunnel endpoint) from whereever I am.

&lt;/p&gt;&lt;h4&gt;iodine&lt;/h4&gt;&lt;p&gt;

&lt;a href=&quot;http://code.kryo.se/iodine/&quot; class=&quot;ext&quot; &gt;iodine&lt;/a&gt; is
likely the most undermining tool in this set. It tunnels IPv4 over
&lt;acronym title=&quot;Domain Name Service&quot;&gt;DNS&lt;/acronym&gt;, allowing you to make arbitrary network connections if you are on
a network where nothing but &lt;acronym title=&quot;Domain Name Service&quot;&gt;DNS&lt;/acronym&gt; requests is allowed (i.e. only &lt;acronym title=&quot;Domain Name Service&quot;&gt;DNS&lt;/acronym&gt;
packets reach the internet).

&lt;/p&gt;&lt;p&gt;

This is often the case on wireless LANs with landing page. They
redirect all web traffic to the landing page. But the network&amp;#8217;s
routers try to avoid poisoning the client&amp;#8217;s &lt;acronym title=&quot;Domain Name Service&quot;&gt;DNS&lt;/acronym&gt; cache with different
&lt;acronym title=&quot;Domain Name Service&quot;&gt;DNS&lt;/acronym&gt; replies as they would get after the user is logged in. So &lt;acronym title=&quot;Domain Name Service&quot;&gt;DNS&lt;/acronym&gt;
packets usually pass even the local network&amp;#8217;s &lt;acronym title=&quot;Domain Name Service&quot;&gt;DNS&lt;/acronym&gt; servers unchanged,
just TCP and other UDP packets are redirected until logging in.

&lt;/p&gt;&lt;p&gt;

With an iodine tunnel, it is possible get a network connection to the
outside on such a network anyway. On startup iodine tries to
automatically find the best parameters (MTU, request type, etc.) for
the current environmenent. However that may fail if any &lt;acronym title=&quot;Domain Name Service&quot;&gt;DNS&lt;/acronym&gt; server in
between imposes &lt;acronym title=&quot;Domain Name Service&quot;&gt;DNS&lt;/acronym&gt; request rate limits.

&lt;/p&gt;&lt;p&gt;

To be able to start such a tunnel you need to set up an iodine daemon
somewhere on the internet. Choose a server which is not already a &lt;acronym title=&quot;Domain Name Service&quot;&gt;DNS&lt;/acronym&gt;
server.

&lt;/p&gt;&lt;p&gt;

iodine is available in many distributions, e.g. &lt;a class=&quot;ext&quot; href=&quot;http://packages.debian.org/iodine&quot;&gt;in
Debian&lt;/a&gt; and &lt;a href=&quot;http://packages.ubuntu.com/iodine&quot; class=&quot;ext&quot;
&gt;in Ubuntu&lt;/a&gt;.</description>
    <comments>http://noone.org/blog/English/Computer/Mobile/Tunneling.futile#comments</comments>
    <slash:comments>0</slash:comments>
    <dc:language>en</dc:language>
    <category domain="http://noone.org/blog/tags/autossh">autossh</category>
<category domain="http://noone.org/blog/tags/Debian">Debian</category>
<category domain="http://noone.org/blog/tags/GitHub">GitHub</category>
<category domain="http://noone.org/blog/tags/iodine">iodine</category>
<category domain="http://noone.org/blog/tags/IPv6">IPv6</category>
<category domain="http://noone.org/blog/tags/Miredo">Miredo</category>
<category domain="http://noone.org/blog/tags/NAT">NAT</category>
<category domain="http://noone.org/blog/tags/Python">Python</category>
<category domain="http://noone.org/blog/tags/Squeeze">Squeeze</category>
<category domain="http://noone.org/blog/tags/SSH">SSH</category>
<category domain="http://noone.org/blog/tags/sshuttle">sshuttle</category>
<category domain="http://noone.org/blog/tags/Testing">Testing</category>
<category domain="http://noone.org/blog/tags/Ubuntu">Ubuntu</category>
<category domain="http://noone.org/blog/tags/Unstable">Unstable</category>
<category domain="http://noone.org/blog/tags/VPN">VPN</category>

  </item>
  <item>
    <title>Tools for CLI Road Warriors: Remote Shells</title>
    <slash:department>OTR-not-only-means-Off-The-Record</slash:department>
    <slash:section>English &amp;raquo; Computer &amp;raquo; Mobile</slash:section>
    <link>http://noone.org/blog/English/Computer/Mobile/Remote%2520Shells.html</link>
    <guid isPermaLink="true">http://noone.org/blog/English/Computer/Mobile/Remote%2520Shells.html</guid>
    <pubDate>Wed, 21 Mar 2012 19:48:03 +0100</pubDate>
    <author>abe+blog@deuxchevaux.org (Axel Beckert)</author>
    <description>
Most of my private online life happens on netbooks and besides the web
browser, &lt;acronym title=&quot;Secure Shell&quot;&gt;SSH&lt;/acronym&gt; is my most used program &amp;mdash; especially on netbooks.
Accordingly I also have hosts on the net to which I connect via &lt;acronym title=&quot;Secure Shell&quot;&gt;SSH&lt;/acronym&gt;.
My most used program there is &lt;a href=&quot;http://www.gnu.org/software/screen/&quot; class=&quot;ext&quot;&gt;&lt;acronym title=&quot;GNU&apos;s not Unix&quot;&gt;GNU&lt;/acronym&gt; Screen&lt;/a&gt;.

&lt;/p&gt;&lt;p&gt;

So yes, for things like e-mail, &lt;acronym title=&quot;Internet Relay Chat&quot;&gt;IRC&lt;/acronym&gt;, and &lt;a href=&quot;http://en.wikipedia.org/wiki/Jabber&quot; class=&quot;wiki&quot;&gt;Jabber&lt;/a&gt; I connect to a running
screen session on some host with a permanent internet connection. On
those hosts there is usually one &lt;a href=&quot;http://www.gnu.org/&quot; class=&quot;ext&quot; title=&quot;GNU&apos;s not Unix&quot;&gt;&lt;acronym title=&quot;GNU&apos;s not Unix&quot;&gt;GNU&lt;/acronym&gt;&lt;/a&gt; Screen instance running
permanently with either &lt;a href=&quot;http://www.mutt.org/&quot; class=&quot;ext&quot;&gt;mutt&lt;/a&gt; or &lt;a href=&quot;http://irssi.org/&quot; class=&quot;ext&quot;&gt;irssi&lt;/a&gt; (which is also my Jabber client
via a &lt;a href=&quot;http://www.bitlbee.org/&quot; class=&quot;ext&quot;&gt;Bitlbee&lt;/a&gt; gateway).

&lt;/p&gt;&lt;p&gt;

But there are some other less well-known tools which I regard as
useful in such a setup. The following two tools can both be seen as
&lt;acronym title=&quot;Secure Shell&quot;&gt;SSH&lt;/acronym&gt; for special occassions.

&lt;/p&gt;&lt;h4&gt;auto&lt;!-- --&gt;ssh&lt;/h4&gt;&lt;p&gt;

I already &lt;a
href=&quot;http://noone.org/blog/English/Computer/Shell/Perfect%20Team:%20autossh%20and%20GNU%20Screen.futile&quot;
&gt;blogged about autossh&lt;/a&gt;, even &lt;a
href=&quot;http://noone.org/blog/English/Computer/Shell/autossh%20vs%20TCP%20resetter.futile&quot;
&gt;twice&lt;/a&gt;, so I&amp;#8217;ll just recap the most important features here:

&lt;/p&gt;&lt;p&gt;

&lt;a href=&quot;http://www.harding.motd.ca/autossh/&quot; class=&quot;ext&quot;&gt;autossh&lt;/a&gt; is a wrapper around &lt;acronym title=&quot;Secure Shell&quot;&gt;SSH&lt;/acronym&gt; which regularily checks via two
tunnels connect to each other on the remote side if the connection is
still alive, and if not, it kills the ssh and starts a new one with
the same parameters (i.e. tunnels, port forwardings, commands to call,
etc.).

&lt;/p&gt;&lt;p&gt;

It&amp;#8217;s quite obvious that this is perfect to be combined with screen&amp;#8217;s
&lt;code&gt;-R&lt;/code&gt; and &lt;code&gt;-d&lt;/code&gt; options.

&lt;/p&gt;&lt;p&gt;

I use autossh so often that I even &lt;a
href=&quot;http://bugs.debian.org/605423&quot; class=&quot;ext&quot; &gt;adopted&lt;/a&gt; its
&lt;a class=&quot;ext&quot; href=&quot;http://packages.debian.org/autossh&quot;&gt;Debian package&lt;/a&gt;.

&lt;/p&gt;&lt;p&gt;

&lt;/p&gt;&lt;h4&gt;mosh&lt;/h4&gt;&lt;p&gt;

Since last week there&amp;#8217;s a new kid in town&lt;code&gt;^W&lt;/code&gt;&lt;a href=&quot;http://www.debian.org/&quot; class=&quot;ext&quot;&gt;Debian&lt;/a&gt;
Unstable: &lt;a href=&quot;http://mosh.mit.edu/&quot; class=&quot;ext&quot;&gt;mosh&lt;/a&gt; targets
the same problems as autossh (unreliable networks, roaming, suspending
the computer, etc.) just with a completely different approach which
partially even obsoletes the usage of &lt;acronym title=&quot;GNU&apos;s not Unix&quot;&gt;GNU&lt;/acronym&gt; Screen or tmux:

&lt;/p&gt;&lt;p&gt;

While mosh uses plain &lt;acronym title=&quot;Secure Shell&quot;&gt;SSH&lt;/acronym&gt; for authentication, authorization and key
exchange the final connection is an AES-128 encrypted UDP connection
on a random port and is independent of the client&amp;#8217;s &lt;acronym title=&quot;Internet Protocol&quot;&gt;IP&lt;/acronym&gt; address.

&lt;/p&gt;&lt;p&gt;

This allows mosh to have the following advantages: The connection
stays even if you&amp;#8217;re switching networks or suspending your netbook. So
if you&amp;#8217;re just running a single text-mode application you don&amp;#8217;t even
need &lt;acronym title=&quot;GNU&apos;s not Unix&quot;&gt;GNU&lt;/acronym&gt; Screen or tmux. (You still do if you want the terminal
multiplexing feature of &lt;acronym title=&quot;GNU&apos;s not Unix&quot;&gt;GNU&lt;/acronym&gt; Screen or tmux.)

&lt;/p&gt;&lt;p&gt;

Another nice feature, especially on unreliable &lt;acronym title=&quot;Wireless Local Area Network&quot;&gt;WLAN&lt;/acronym&gt; connections or
laggy &lt;acronym title=&quot;Global System for Mobile Communications&quot;&gt;GSM&lt;/acronym&gt; or &lt;acronym title=&quot;Universal Mobile Telecommunications System; Unvermutete Mehreinnahme zur Tilgung von Staatsschulden (Hans Eichel)&quot;&gt;UMTS&lt;/acronym&gt; connections is mosh&amp;#8217;s output prediction based on its
input (i.e. what is typed). Per line it tries to guess which server
reaction a key press would cause and if it detects a lagging
connection, it shows the predicted result underlined until it gets the
real result from the server. This eases writing mails in a remote mutt
or chatting in a remote irssi, especially if you noticed that you made
a typo, but can&amp;#8217;t remember how many backspaces you would have to type
to fix it.

&lt;/p&gt;&lt;p&gt;

Mosh needs to be installed on both, client and server, but the server
is only activated via &lt;acronym title=&quot;Secure Shell&quot;&gt;SSH&lt;/acronym&gt;, so it has no port open unless a connection
is started. And despite that (in Debian) &lt;a class=&quot;ext&quot; href=&quot;http://packages.debian.org/mosh&quot;&gt;mosh is
currently just available in Unstable&lt;/a&gt;, the package builds fine on
&lt;a href=&quot;http://www.debian.org/releases/squeeze/&quot; class=&quot;ext&quot;&gt;Squeeze&lt;/a&gt;, too. There&amp;#8217;s also an &lt;a class=&quot;ext&quot;
href=&quot;https://launchpad.net/~keithw/+archive/mosh&quot; &gt;&lt;acronym title=&quot;Personal Package Archive&quot;&gt;PPA&lt;/acronym&gt; for Ubuntu&lt;/a&gt;
and of course you can also get the source code, e.g. as &lt;a href=&quot;http://git-scm.com/&quot; class=&quot;ext&quot;&gt;git&lt;/a&gt; checkout
from &lt;a href=&quot;http://github.com/&quot; class=&quot;ext&quot;&gt;GitHub&lt;/a&gt;.

&lt;/p&gt;&lt;p&gt;

mosh is still &lt;a href=&quot;https://github.com/keithw/mosh/commits/master&quot;
class=&quot;ext&quot; &gt;under heavy development and new features and bug fixes
get added nearly every day&lt;/a&gt;.

&lt;/p&gt;&lt;p&gt;&lt;small&gt;

Thanks to &lt;a href=&quot;http://spang.cc/&quot; class=&quot;ext&quot; &gt;Christine Spang&lt;/a&gt;
for sponsoring and mentoring Keith&amp;#8217;s mosh package in Debian.

&lt;/small&gt;&lt;/p&gt;&lt;p&gt;

&lt;b&gt;Update:&lt;/b&gt; I gave a &lt;a class=&quot;uni&quot;
href=&quot;https://easterhegg.ch/lecture-ssh-ber-unzuverlssige-leitungen-lag-roaming-gsm-wackelige-wlans-und-hibernation&quot;
&gt;lightning talk about Mosh and AutoSSH in German at Easterhegg
2012&lt;/a&gt;. The &lt;a
href=&quot;http://noone.org/talks/ssh-tricks/ssh-tricks-eh12.html&quot;
&gt;slides&lt;/a&gt; are available online.</description>
    <comments>http://noone.org/blog/English/Computer/Mobile/Remote%2520Shells.futile#comments</comments>
    <slash:comments>1</slash:comments>
    <dc:language>en</dc:language>
    <category domain="http://noone.org/blog/tags/autossh">autossh</category>
<category domain="http://noone.org/blog/tags/Bitlbee">Bitlbee</category>
<category domain="http://noone.org/blog/tags/Debian">Debian</category>
<category domain="http://noone.org/blog/tags/GitHub">GitHub</category>
<category domain="http://noone.org/blog/tags/GNU%20Screen">GNU Screen</category>
<category domain="http://noone.org/blog/tags/IRC">IRC</category>
<category domain="http://noone.org/blog/tags/irssi">irssi</category>
<category domain="http://noone.org/blog/tags/Jabber">Jabber</category>
<category domain="http://noone.org/blog/tags/mosh">mosh</category>
<category domain="http://noone.org/blog/tags/mutt">mutt</category>
<category domain="http://noone.org/blog/tags/PPA">PPA</category>
<category domain="http://noone.org/blog/tags/Squeeze">Squeeze</category>
<category domain="http://noone.org/blog/tags/ssh">ssh</category>
<category domain="http://noone.org/blog/tags/SSH">SSH</category>
<category domain="http://noone.org/blog/tags/Testing">Testing</category>
<category domain="http://noone.org/blog/tags/Ubuntu">Ubuntu</category>
<category domain="http://noone.org/blog/tags/Unstable">Unstable</category>

  </item>
  <item>
    <title>I changed my mind. I want a camera mobile phone.</title>
    <slash:department>considerations</slash:department>
    <slash:section>English &amp;raquo; Computer &amp;raquo; Mobile</slash:section>
    <link>http://noone.org/blog/English/Computer/Mobile/I%2520changed%2520my%2520mind.%2520I%2520want%2520a%2520camera%2520mobile%2520phone.html</link>
    <guid isPermaLink="true">http://noone.org/blog/English/Computer/Mobile/I%2520changed%2520my%2520mind.%2520I%2520want%2520a%2520camera%2520mobile%2520phone.html</guid>
    <pubDate>Thu, 02 Mar 2006 02:29:35 +0100</pubDate>
    <author>abe+blog@deuxchevaux.org (Axel Beckert)</author>
    <description>
Today I &lt;a href=&quot;http://www.golem.de/0512/42398.html&quot; class=&quot;ext&quot;
&gt;read&lt;/a&gt; and &lt;a class=&quot;uni&quot;
href=&quot;http://www.symlink.ch/article.pl?sid=05/12/28/1243239&quot;
&gt;wrote&lt;/a&gt; about &lt;a class=&quot;ext&quot; href=&quot;http://www.semapedia.org/&quot;
&gt;Semapedia&lt;/a&gt;, a service respective toolset to encode &lt;a href=&quot;http://www.wikipedia.org/&quot; class=&quot;ext&quot;&gt;Wikipedia&lt;/a&gt; &lt;acronym title=&quot;Uniform Resource Locator&quot;&gt;URLs&lt;/acronym&gt;
(and also others) &lt;a class=&quot;ext&quot;
href=&quot;http://semacode.org/about/technical/#symbology&quot;&gt;as dot-matrix
barcode&lt;/a&gt;, print them out on leaflets together with mentioning
Wikipedia and the &lt;acronym title=&quot;Uniform Resource Locator&quot;&gt;URL&lt;/acronym&gt;. Then any visitor with a modern camera cell
phone can take an image of the barcode, decode it with &lt;a class=&quot;ext&quot;
href=&quot;http://semacode.org/software/toolkit/reader/&quot;&gt;the right
software&lt;/a&gt; on your phone, which passes the decoded &lt;acronym title=&quot;Uniform Resource Locator&quot;&gt;URL&lt;/acronym&gt; directly to
the phones webbrowser.

&lt;/p&gt;&lt;p&gt;

This is the first useful application of camera phones I ever heard
about. But I see it as so useful that I may consider buying me a
camera cell phone with the next contract renewal, although until now,
I focused all my search for a worthy successor to my &lt;a class=&quot;ext&quot;
href=&quot;http://www.nokia.de/de/mobiltelefone/modelluebersicht/6310/startseite/4556.html&quot;
title=&quot;Sorry for the German link, but Nokia.com nowadays uses Flash.&quot;
&gt;Nokia 6310i&lt;/a&gt; on non-camera phones. (Update: And &lt;a
href=&quot;http://www.sozial-inkompetent.de/index.php?/archives/13-Das-Handy-meiner-Traeume....html&quot;
class=&quot;ext&quot;&gt;I&amp;#8217;m not alone&lt;/a&gt; with the wish for a &lt;em&gt;useful&lt;/em&gt;
mobile phone.)

&lt;/p&gt;&lt;p&gt;

The 6310i had nearly everything I needed: A big memory, long standby
times (1.5 to 2 weeks), &lt;acronym title=&quot;Wireless Application Protocol&quot;&gt;WAP&lt;/acronym&gt; incl. &lt;acronym title=&quot;Wireless Application Protocol&quot;&gt;WAP&lt;/acronym&gt; browser for &lt;a
href=&quot;http://www.symlink.ch/wap/start.shtml&quot; class=&quot;uni&quot;&gt;reading
Symlink on the road&lt;/a&gt;, &lt;acronym title=&quot;General Packet Radio Service&quot;&gt;GPRS&lt;/acronym&gt;, &lt;acronym title=&quot;Global System for Mobile Communications&quot;&gt;GSM&lt;/acronym&gt; 900/1800, T9, Infrared, &lt;a
href=&quot;http://www.gnokii.org/&quot; class=&quot;ext&quot;&gt;gnokii&lt;/a&gt; support, the same
battery bay than my former mobile phones (Nokia &lt;a class=&quot;ext&quot;
href=&quot;http://www.nokia.de/de/mobiltelefone/modelluebersicht/6210/startseite/4574.html&quot;
title=&quot;Sorry for the German link, but Nokia.com nowadays uses Flash.&quot;
&gt;6210&lt;/a&gt; and &lt;a class=&quot;ext&quot;
title=&quot;The 6130 was the GSM-1800 only version of the linked 6150. Sorry for the German link, but Nokia.com nowadays uses Flash.&quot;
href=&quot;http://www.nokia.de/de/mobiltelefone/modelluebersicht/6150/startseite/5096.html&quot;
&gt;6130&lt;/a&gt;) and the Nokia typical, very intu&amp;iuml;tive and
blindly usable user interface.  (Siemens mobiles suck!). It also had
some things, I didn&amp;#8217;t need yet, but sounded useful: Voice dialing and
voice recording, Java for playing with own programs, Bluetooth for a
cableless headset or so and &lt;acronym title=&quot;Global System for Mobile Communications&quot;&gt;GSM&lt;/acronym&gt;-1900 because perhaps also other
countries than the &lt;acronym title=&quot;United States of America&quot;&gt;USA&lt;/acronym&gt; use that frequency band. (I refuse to travel to
the &lt;acronym title=&quot;United States of America&quot;&gt;USA&lt;/acronym&gt;, so I won&amp;#8217;t need the &lt;acronym title=&quot;Global System for Mobile Communications&quot;&gt;GSM&lt;/acronym&gt;-1900 there.)

&lt;/p&gt;&lt;p&gt;

It had nothing I didn&amp;#8217;t want to have in a mobile phone: Camera, radio,
&lt;acronym title=&quot;MPEG (Moving Picture Experts Group) 1 Audio Layer 3&quot;&gt;MP3&lt;/acronym&gt; player, standby time munching color display, e-mail client, &lt;acronym title=&quot;Multimedia Messaging Service&quot;&gt;MMS&lt;/acronym&gt;,
&lt;acronym title=&quot;MPEG (Moving Picture Experts Group) 1 Audio Layer 3&quot;&gt;MP3&lt;/acronym&gt; ring tones or flip covers. The only thing I missed, was a more
modern Java &lt;acronym title=&quot;Virtual Machine&quot;&gt;VM&lt;/acronym&gt; and even more memory when &lt;a class=&quot;ext&quot;
href=&quot;http://mini.opera.com&quot;&gt;Opera Mini&lt;/a&gt; came out and maybe
polyphone ring tones, so I could have the Monkey Island theme as ring
tone. ;-)

&lt;/p&gt;&lt;p&gt;

So what now? Being able to use &lt;a href=&quot;http://www.opera.com/&quot; class=&quot;ext&quot;&gt;Opera&lt;/a&gt; Mini and Semapedia means to have
a mobile phone with camera and &amp;mdash; and that&amp;#8217;s the drawback &amp;mdash;
a color display. Anyone knows a Nokia camera phone on which Opera Mini
runs but without color display? And with the battery bay from the 6x10
series? No?

&lt;/p&gt;&lt;p&gt;

Or maybe I should just stay with the 6310i and get me a second one in
better condition (no broken case) from eBay or so? There were also
(yet unconfirmed) rumours that my &lt;acronym title=&quot;Global System for Mobile Communications&quot;&gt;GSM&lt;/acronym&gt; provider &lt;a
href=&quot;http://www.e-plus.de/&quot; class=&quot;ext&quot;&gt;E-Plus&lt;/a&gt; will have the
&lt;a href=&quot;http://www.kernel.org/&quot; class=&quot;ext&quot;&gt;Linux&lt;/a&gt; based internet tablet &lt;a class=&quot;ext&quot;
href=&quot;http://www.nokia.de/de/mobiltelefone/modelluebersicht/770/startseite/167296.html&quot;
title=&quot;Sorry for the German link, but Nokia.com nowadays uses Flash.&quot;
&gt;Nokia 770&lt;/a&gt; for a contract renewal plus 80&amp;euro; to
90&amp;euro;&amp;#8230; Difficult decision&amp;#8230;</description>
    <comments>http://noone.org/blog/English/Computer/Mobile/I%2520changed%2520my%2520mind.%2520I%2520want%2520a%2520camera%2520mobile%2520phone.futile#comments</comments>
    <slash:comments>3</slash:comments>
    <dc:language>en</dc:language>
    <category domain="http://noone.org/blog/tags/DigiCam">DigiCam</category>
<category domain="http://noone.org/blog/tags/eBay">eBay</category>
<category domain="http://noone.org/blog/tags/Fl%E4sch">Fläsch</category>
<category domain="http://noone.org/blog/tags/GPRS">GPRS</category>
<category domain="http://noone.org/blog/tags/GSM">GSM</category>
<category domain="http://noone.org/blog/tags/H%E4ndi">Händi</category>
<category domain="http://noone.org/blog/tags/Java">Java</category>
<category domain="http://noone.org/blog/tags/Mobile%20Phone">Mobile Phone</category>
<category domain="http://noone.org/blog/tags/Monkey%20Island">Monkey Island</category>
<category domain="http://noone.org/blog/tags/MP3">MP3</category>
<category domain="http://noone.org/blog/tags/Nokia">Nokia</category>
<category domain="http://noone.org/blog/tags/Nokia%206130">Nokia 6130</category>
<category domain="http://noone.org/blog/tags/Nokia%206210">Nokia 6210</category>
<category domain="http://noone.org/blog/tags/Nokia%206310i">Nokia 6310i</category>
<category domain="http://noone.org/blog/tags/Nokia%20770">Nokia 770</category>
<category domain="http://noone.org/blog/tags/Opera">Opera</category>
<category domain="http://noone.org/blog/tags/Symlink">Symlink</category>
<category domain="http://noone.org/blog/tags/USA">USA</category>
<category domain="http://noone.org/blog/tags/WAP">WAP</category>
<category domain="http://noone.org/blog/tags/Wikipedia">Wikipedia</category>

  </item>
    <link>http://noone.org/blog/English/Computer/Mobile</link>
  </channel>
</rss>

