<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Den</title>
    <description>The latest articles on DEV Community by Den (@termuxg).</description>
    <link>https://dev.to/termuxg</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4110738%2Ffc361152-149e-40be-91d7-7701957d84cf.png</url>
      <title>DEV Community: Den</title>
      <link>https://dev.to/termuxg</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/termuxg"/>
    <language>en</language>
    <item>
      <title>Remote Access to Termux via SSH: Managing Your Smartphone from a PC</title>
      <dc:creator>Den</dc:creator>
      <pubDate>Sat, 05 Sep 2026 06:34:09 +0000</pubDate>
      <link>https://dev.to/termuxg/remote-access-to-termux-via-ssh-managing-your-smartphone-from-a-pc-15lm</link>
      <guid>https://dev.to/termuxg/remote-access-to-termux-via-ssh-managing-your-smartphone-from-a-pc-15lm</guid>
      <description>&lt;p&gt;Managing files, running scripts, and executing terminal commands on your smartphone from a computer is much more convenient through a full SSH session, eliminating the need to switch between device screens.&lt;br&gt;
​Installing OpenSSH&lt;br&gt;
Open Termux and install the package for the secure protocol:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pkg update &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; pkg &lt;span class="nb"&gt;install &lt;/span&gt;openssh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Configuration&lt;br&gt;
​Set a password to secure the connection: &lt;code&gt;passwd&lt;/code&gt;&lt;br&gt;
​&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Find your current username using the &lt;code&gt;whoami&lt;/code&gt; command (usually looks like &lt;code&gt;u0_a...&lt;/code&gt;).&lt;br&gt;
​Start the SSH server: &lt;code&gt;sshd&lt;/code&gt;&lt;br&gt;
​Connecting from a PC&lt;br&gt;
Find your smartphone's local IP address using &lt;code&gt;ifconfig&lt;/code&gt;(look for the &lt;code&gt;inet&lt;/code&gt; line under the &lt;code&gt;wlan0&lt;/code&gt; interface).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Note that Termux uses a non-standard port &lt;strong&gt;8022&lt;/strong&gt; by default instead of the standard 22.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Connect from your computer (Linux, macOS, or Windows via PowerShell/PuTTY):&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ssh"&gt;&lt;code&gt;&lt;span class="k"&gt;ssh&lt;/span&gt; &amp;lt;username&amp;gt;@&amp;lt;smartphone_IP&amp;gt; -p &lt;span class="m"&gt;8022&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;After entering your password, you will gain full access to your phone's terminal directly from your PC.&lt;br&gt;
Autostarting the Server&lt;br&gt;
To avoid starting the server manually every time you open the app, add the command to your shell configuration:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"sshd"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; ~/.bashrc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This tool turns your mobile device into a fully functional remote node that is easy to manage over the local network when developing and testing lightweight projects.&lt;/p&gt;

&lt;p&gt;I share more simple and awesome smartphone IT projects on my Telegram channel: @termuxq&lt;/p&gt;

</description>
      <category>termux</category>
      <category>linux</category>
      <category>opensource</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
