<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Ruslan&#39;s Tech Blog</title>
    <link>https://blog.bekenev.net/tags/ssh.html</link>
    <description>Software development related stuff</description>
    <language>en-us</language>
    <lastBuildDate>Fri, 27 Oct 2017 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://blog.bekenev.net/tags/ssh/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>SSH escape sequences or how to quit frozen SSH connection</title>
      <link>https://blog.bekenev.net/2017/10/27/ssh-escape-seqaence.html</link>
      <pubDate>Fri, 27 Oct 2017 00:00:00 +0000</pubDate>
      <guid>https://blog.bekenev.net/2017/10/27/ssh-escape-seqaence.html</guid>
      <description>&lt;p&gt;Hey,&lt;/p&gt;&#xA;&lt;p&gt;So your SSH session has been frozen? Here is what I was doing when it happened.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a target=&#34;_blank&#34; href=&#34;https://blog.bekenev.net/assets/img/ssh-baboon.gif&#34;&gt;&lt;img alt=&#34;ssh frozen gif&#34; src=&#34;https://blog.bekenev.net/assets/img/ssh-baboon.gif&#34; width=&#34;550px&#34;/&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The actual thing that should be done is press:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;Enter&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;~&lt;/code&gt; (tilda)&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;.&lt;/code&gt; (dot)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Welcome back to your local machine.&lt;/p&gt;&#xA;&lt;p&gt;The actions performed are called &lt;strong&gt;Escape Sequence&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;SSH is just a shell tunnel between you and another machine.&#xA;The SSH client pass all keys sequence, including key bindings, to the server.&lt;/p&gt;&#xA;&lt;p&gt;So if you want to press &lt;code&gt;CTRL+c&lt;/code&gt; to kill the running app it will be killed&#xA;on the remote machine instead of killing the current SSH client.&lt;/p&gt;&#xA;&lt;p&gt;Special key sequences allows you to get reaction directly from SSH client&#xA;instead of an app on remote server.&lt;/p&gt;&#xA;&lt;p&gt;If you want to see all possible sequences just press:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;Enter&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;~&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;?&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;br/&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Supported escape sequences:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; ~.   - terminate connection (and any multiplexed sessions)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; ~B   - send a BREAK to the remote system&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; ~C   - open a command line&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; ~R   - request rekey&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; ~V/v - decrease/increase verbosity (LogLevel)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; ~^Z  - suspend ssh&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; ~#   - list forwarded connections&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; ~&amp;amp;   - background ssh (when waiting for connections to terminate)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; ~?   - this message&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; ~~   - send the escape character by typing it twice&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br/&gt;&#xA;&lt;br/&gt;&#xA;I&#39;m actually do not use any of them (except `~.`). Maybe you&#39;ll find some of them useful.&#xA;&lt;p&gt;&amp;lt;3&lt;/p&gt;&#xA;</description>
    </item>
  </channel>
</rss>
