<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Howto autostart ssh]]></title><description><![CDATA[<p dir="auto">I can´t solve the autostart service for the ssh server.<br />
I use OTA24 with second OS of VollaPhone22.</p>
<p dir="auto">I startet the ssh server:</p>
<pre><code>$sudo service ssh start
$sudo systemctl is-enabled ssh
enabled
</code></pre>
<p dir="auto">Checking for service to start on boot:</p>
<pre><code>$systemctl is-active ssh
inactive
</code></pre>
<p dir="auto">To enable the service to start on boot, I gone to:</p>
<pre><code>$sudo systemctl enable ssh
Synchronizing state of ssh.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable ssh
update-rc.d: error: Device or resource busy
</code></pre>
<p dir="auto">My solution to read/write to root files:<br />
1.) Open UT Tweak Tool<br />
2.) go to System =&gt; make image writable =&gt; Temporary</p>
<pre><code>$sudo mount -o remount,rw /
</code></pre>
<p dir="auto">But no change:</p>
<pre><code>$sudo systemctl enable ssh
Synchronizing state of ssh.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable ssh
update-rc.d: error: Device or resource busy
</code></pre>
<p dir="auto">How can I enable ssh service on start?</p>
]]></description><link>https://forums.ubports.com/topic/8631/howto-autostart-ssh</link><generator>RSS for Node</generator><lastBuildDate>Sun, 10 May 2026 05:20:31 GMT</lastBuildDate><atom:link href="https://forums.ubports.com/topic/8631.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 07 Feb 2023 16:41:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Howto autostart ssh on Tue, 12 Mar 2024 13:41:27 GMT]]></title><description><![CDATA[<p dir="auto">I'm new, also running UbuntuTouch 16.04 as of this morning.</p>
<p dir="auto">I'm wondering why this doesn't work 'out of the box', we have a <code>/etc/init.d/ssh</code> and it's active for the run levels we want.  I've spent some time trying to trace this, without luck.</p>
<p dir="auto">The standard hack is to put stuff in <code>/etc/rc.local</code>, so that's what I did in the end (<code>service ssh start</code>).</p>
]]></description><link>https://forums.ubports.com/post/79187</link><guid isPermaLink="true">https://forums.ubports.com/post/79187</guid><dc:creator><![CDATA[tonyr]]></dc:creator><pubDate>Tue, 12 Mar 2024 13:41:27 GMT</pubDate></item><item><title><![CDATA[Reply to Howto autostart ssh on Sat, 11 Feb 2023 12:40:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bolly" aria-label="Profile: bolly">@<bdi>bolly</bdi></a><br />
THANK YOU SO MUCH ! <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f44f.png?v=56a73af4c47" class="not-responsive emoji emoji-android emoji--clap" style="height:23px;width:auto;vertical-align:middle" title=":clap:" alt="👏" /> :grinning_face: <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f44d.png?v=56a73af4c47" class="not-responsive emoji emoji-android emoji--+1" style="height:23px;width:auto;vertical-align:middle" title=":+1:" alt="👍" /><br />
Now runs after a reboot and is also available without unlocking the home screen.<br />
This is a real work simplification.</p>
<p dir="auto">Great work!</p>
]]></description><link>https://forums.ubports.com/post/70627</link><guid isPermaLink="true">https://forums.ubports.com/post/70627</guid><dc:creator><![CDATA[chris_bavaria]]></dc:creator><pubDate>Sat, 11 Feb 2023 12:40:38 GMT</pubDate></item><item><title><![CDATA[Reply to Howto autostart ssh on Sat, 11 Feb 2023 11:58:55 GMT]]></title><description><![CDATA[<p dir="auto">Hi, it's probably a botched job. I'm sorry. <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f602.png?v=56a73af4c47" class="not-responsive emoji emoji-android emoji--joy" style="height:23px;width:auto;vertical-align:middle" title="😂" alt="😂" /></p>
<p dir="auto">SSH does not start automatically on Pinephone and Vollaphone 22. It may happen on more devices, I don't know.</p>
<p dir="auto">To solve it I created this "thing" when I played with Pinephone.</p>
<p dir="auto">Script <a href="https://t.me/Ubuntuphoneytouchespanol/200" target="_blank" rel="noopener noreferrer nofollow ugc">enabledSSH.sh</a></p>
<pre><code>#!/bin/bash
### Enable SSH at startup in UT ###
echo "#!/bin/bash" &gt; startssh.sh
echo "### Iniciar SSH ###" &gt;&gt; startssh.sh
echo "exec service ssh start" &gt;&gt; startssh.sh
sudo chmod +x startssh.sh
sudo mount -o remount,rw /
sudo cp startssh.sh /etc/init.d/
sudo rm startssh.sh
sudo update-rc.d startssh.sh defaults
sudo reboot
</code></pre>
<p dir="auto">Then execute:</p>
<pre><code>bash enabledSSH.sh
</code></pre>
<p dir="auto">P.S. Rerun only when changing channels.</p>
]]></description><link>https://forums.ubports.com/post/70626</link><guid isPermaLink="true">https://forums.ubports.com/post/70626</guid><dc:creator><![CDATA[Bolly]]></dc:creator><pubDate>Sat, 11 Feb 2023 11:58:55 GMT</pubDate></item><item><title><![CDATA[Reply to Howto autostart ssh on Fri, 10 Feb 2023 21:53:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jezek" aria-label="Profile: jezek">@<bdi>jezek</bdi></a><br />
Is ssh automatically activated when the phone starts?</p>
]]></description><link>https://forums.ubports.com/post/70619</link><guid isPermaLink="true">https://forums.ubports.com/post/70619</guid><dc:creator><![CDATA[chris_bavaria]]></dc:creator><pubDate>Fri, 10 Feb 2023 21:53:09 GMT</pubDate></item><item><title><![CDATA[Reply to Howto autostart ssh on Fri, 10 Feb 2023 17:30:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chris_bavaria" aria-label="Profile: chris_bavaria">@<bdi>chris_bavaria</bdi></a> I have an FP2. I've enabled ssh long time ago, using the documentation mentioned above. The only trouble I have with ssh, is that when I enable wifi on the phone and want to connect to it (from notbook using ssh), many times the connection doesn't get through. I have to reconnect the wifi on the phone (by tapping on the connected wifi name in wifi notification area) and than it connects. No need to start service in the phone terminal.</p>
]]></description><link>https://forums.ubports.com/post/70617</link><guid isPermaLink="true">https://forums.ubports.com/post/70617</guid><dc:creator><![CDATA[jezek]]></dc:creator><pubDate>Fri, 10 Feb 2023 17:30:57 GMT</pubDate></item><item><title><![CDATA[Reply to Howto autostart ssh on Thu, 09 Feb 2023 22:58:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jezek" aria-label="Profile: jezek">@<bdi>jezek</bdi></a><br />
Thanks for the explanation.<br />
I've now read deeper and found the command for ssh in runlevel3.<br />
This points to /etc/init.d. This is the script that starts the "OpenBSD Secure Shell server" at boot time.<br />
According to my research, the settings for the autostart are made in /etc/init.<br />
Since I don't want to change the script, but just want to start the service, I've included<br />
<code>sudo update-rc.d ssh defaults</code> enabled the shh service (again).<br />
After that I got this output with the following command:</p>
<pre><code>phablet@ubuntu-phablet:~$ service --status-all
...
  [ + ] apparmor
  [ + ] isc-dhcp-server
  [ - ] keyboard setup
  ...
  [ + ] network manager
  [ + ] networking
...
  [ - ] rc.local
...
  [ + ] ssh
  [ + ] udev
...
</code></pre>
<p dir="auto">Although ssh is shown as an active here, I can't access UbuntuTouch 16.04 from my client.<br />
<code>ssh: connect to host 192.168.188.50 port 22: Connection refused</code></p>
<p dir="auto">In the systemctl I found the ssh.socket with the following command. However, this ssh.socket is not executable.</p>
<pre><code>$systemctl list-unit-files --type=socket
UNIT                              FILE STATE
...
ssh.socket                          enabled
...
systemd-networkd.socket            disabled
...
</code></pre>
<p dir="auto">I need to run the <code>sudo service ssh start</code> command manually to get access via ssh. <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f644.png?v=56a73af4c47" class="not-responsive emoji emoji-android emoji--face_with_rolling_eyes" style="height:23px;width:auto;vertical-align:middle" title=":face_with_rolling_eyes:" alt="🙄" /></p>
<p dir="auto">I found the startup script for ssh.service under /lib/systemd/system and it already exists.<br />
When I run the existing ssh.service command to enable it, I get the following error:</p>
<pre><code>root@ubuntu-phablet:/lib/systemd/system# systemctl enable ssh.service
Synchronizing state of ssh.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable ssh
update-rc.d: error: Device or resource busy
root@ubuntu-phablet:/lib/systemd/system# systemctl status ssh
Failed to get properties: No such interface ''
</code></pre>
<p dir="auto">I see the problem in the following line:</p>
<pre><code>update-rc.d: error: Device or resource busy
</code></pre>
<p dir="auto">Is this service locked in UbuntuTouch? :frowning_face:<br />
After the reboot I still get <code>ssh stop/waiting</code> from <code>sudo status ssh</code>. Am I missing something here?<br />
A manual <code>sudo service ssh start</code> results in <code>ssh start/running, process 7838</code>. <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f644.png?v=56a73af4c47" class="not-responsive emoji emoji-android emoji--face_with_rolling_eyes" style="height:23px;width:auto;vertical-align:middle" title=":face_with_rolling_eyes:" alt="🙄" /><br />
Can someone confirm that the ssh service doesn't start automatically?</p>
<p dir="auto">I'll try it now with cron job on boot, hopefully it works. But it's not such a clean solution.</p>
<p dir="auto"><em>( upstart works together with systemd &gt; <a href="https://crunchify.com/systemd-upstart-respawn-process-linux-os/" target="_blank" rel="noopener noreferrer nofollow ugc">https://crunchify.com/systemd-upstart-respawn-process-linux-os/</a>)</em></p>
]]></description><link>https://forums.ubports.com/post/70608</link><guid isPermaLink="true">https://forums.ubports.com/post/70608</guid><dc:creator><![CDATA[chris_bavaria]]></dc:creator><pubDate>Thu, 09 Feb 2023 22:58:03 GMT</pubDate></item><item><title><![CDATA[Reply to Howto autostart ssh on Thu, 09 Feb 2023 15:27:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chris_bavaria" aria-label="Profile: chris_bavaria">@<bdi>chris_bavaria</bdi></a> said in <a href="/post/70591">Howto autostart ssh</a>:</p>
<blockquote>
<p dir="auto">Is there a solution to turn ssh service on, while booting?</p>
</blockquote>
<p dir="auto">Hmm... if there is <code>systemctl</code>, then there has to be <code>systemd</code>, am I right? And if there is a systemd, then you can write a <a href="https://www.unixsysadmin.com/systemd-user-services/" target="_blank" rel="noopener noreferrer nofollow ugc">user service</a>, which will <a href="https://superuser.com/questions/1025091/start-a-systemd-user-service-at-boot" target="_blank" rel="noopener noreferrer nofollow ugc">run at boot</a>.</p>
<p dir="auto">If there is no <code>systemd</code>, then it is using <a href="https://upstart.ubuntu.com/getting-started.html" target="_blank" rel="noopener noreferrer nofollow ugc">upstart</a> and you can make it run <a href="https://www.linux.com/training-tutorials/manage-system-startup-and-boot-processes-linux-upstart/" target="_blank" rel="noopener noreferrer nofollow ugc">script on boot</a>.</p>
<p dir="auto">If everything fails try <a href="https://phoenixnap.com/kb/crontab-reboot" target="_blank" rel="noopener noreferrer nofollow ugc">cron job on boot</a>.</p>
]]></description><link>https://forums.ubports.com/post/70603</link><guid isPermaLink="true">https://forums.ubports.com/post/70603</guid><dc:creator><![CDATA[jezek]]></dc:creator><pubDate>Thu, 09 Feb 2023 15:27:02 GMT</pubDate></item><item><title><![CDATA[Reply to Howto autostart ssh on Wed, 08 Feb 2023 17:05:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jezek" aria-label="Profile: jezek">@<bdi>jezek</bdi></a><br />
Yes, this is correct, there is nothing about <code>systemctl</code>.<br />
Enabled ssh is after reboot disabled on VollaPhone, same on Pixel 3a with 20.04 (2022-W51).<br />
Is there a solution to turn ssh service on, while booting?</p>
]]></description><link>https://forums.ubports.com/post/70591</link><guid isPermaLink="true">https://forums.ubports.com/post/70591</guid><dc:creator><![CDATA[chris_bavaria]]></dc:creator><pubDate>Wed, 08 Feb 2023 17:05:48 GMT</pubDate></item><item><title><![CDATA[Reply to Howto autostart ssh on Wed, 08 Feb 2023 15:50:08 GMT]]></title><description><![CDATA[<p dir="auto">In the <a href="https://docs.ubports.com/en/latest/userguide/advanceduse/ssh.html" target="_blank" rel="noopener noreferrer nofollow ugc">user guide about how to start ssh</a> for 16.04, there is nothing about the <code>systemctl</code> command. I don't recall to use such command when enabled ssh on my FP2 a long time ago (it works after reboots). Does Vollaphone handle it differently?</p>
]]></description><link>https://forums.ubports.com/post/70589</link><guid isPermaLink="true">https://forums.ubports.com/post/70589</guid><dc:creator><![CDATA[jezek]]></dc:creator><pubDate>Wed, 08 Feb 2023 15:50:08 GMT</pubDate></item><item><title><![CDATA[Reply to Howto autostart ssh on Wed, 08 Feb 2023 14:28:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chris_bavaria" aria-label="Profile: chris_bavaria">@<bdi>chris_bavaria</bdi></a></p>
<p dir="auto">The same on Pixel 3a (OTA24)</p>
<pre><code>$sudo systemctl enable ssh
Synchronizing state of ssh.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable ssh
update-rc.d: error: Device or resource busy
</code></pre>
<p dir="auto">Why is device or resource busy? <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f644.png?v=56a73af4c47" class="not-responsive emoji emoji-android emoji--face_with_rolling_eyes" style="height:23px;width:auto;vertical-align:middle" title=":face_with_rolling_eyes:" alt="🙄" /></p>
]]></description><link>https://forums.ubports.com/post/70587</link><guid isPermaLink="true">https://forums.ubports.com/post/70587</guid><dc:creator><![CDATA[chris_bavaria]]></dc:creator><pubDate>Wed, 08 Feb 2023 14:28:51 GMT</pubDate></item><item><title><![CDATA[Reply to Howto autostart ssh on Wed, 08 Feb 2023 00:30:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chris_bavaria" aria-label="Profile: chris_bavaria">@<bdi>chris_bavaria</bdi></a> said in <a href="/post/70575">Howto autostart ssh</a>:</p>
<blockquote>
<p dir="auto">Maybe this is a issue with the port of VollaPhone22?</p>
</blockquote>
<p dir="auto">You can ask here : <a href="https://github.com/HelloVolla/ubuntu-touch-beta-tests/issues" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/HelloVolla/ubuntu-touch-beta-tests/issues</a></p>
]]></description><link>https://forums.ubports.com/post/70578</link><guid isPermaLink="true">https://forums.ubports.com/post/70578</guid><dc:creator><![CDATA[domubpkm]]></dc:creator><pubDate>Wed, 08 Feb 2023 00:30:00 GMT</pubDate></item><item><title><![CDATA[Reply to Howto autostart ssh on Tue, 07 Feb 2023 22:21:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mark1250" aria-label="Profile: mark1250">@<bdi>mark1250</bdi></a></p>
<pre><code>phablet@ubuntu-phablet:~$ netstat -tulnp
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.1.1:53            0.0.0.0:*               LISTEN      -               
udp        0      0 127.0.1.1:53            0.0.0.0:*                           -               
udp        0      0 0.0.0.0:68              0.0.0.0:*                              -
</code></pre>
<p dir="auto">After I start the ssh service manually the output is:</p>
<pre><code>$sudo service ssh start

phablet@ubuntu-phablet:~$ netstat -tulnp
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.1.1:53            0.0.0.0:*               LISTEN      -               
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -               
tcp6       0      0 :::22                   :::*                    LISTEN      -               
udp        0      0 127.0.1.1:53            0.0.0.0:*                           -               
udp        0      0 0.0.0.0:68              0.0.0.0:*                           -
</code></pre>
<p dir="auto">I get access via ssh, but the service is not starting on boot.<br />
Yes, I use the VollaPhone22 with Ubuntu 16.04 (OTA-24).<br />
In the next days, I get my new phone Pixel 3a. I go to install 20.04 and try this with my new phone. Maybe this is a issue with the port of VollaPhone22?<br />
Thanks, I report then here my experience!</p>
]]></description><link>https://forums.ubports.com/post/70575</link><guid isPermaLink="true">https://forums.ubports.com/post/70575</guid><dc:creator><![CDATA[chris_bavaria]]></dc:creator><pubDate>Tue, 07 Feb 2023 22:21:19 GMT</pubDate></item><item><title><![CDATA[Reply to Howto autostart ssh on Tue, 07 Feb 2023 21:48:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chris_bavaria" aria-label="Profile: chris_bavaria">@<bdi>chris_bavaria</bdi></a><br />
Sorry, I for some reason thought you were on 20.04. I'm surprised that systemctl commands work on 16.04 which uses upstart hence the service command.</p>
<p dir="auto">Is something else using the port 22? Does the netstat command work? - I don't have quick access to a Ubuntu Touch install at the moment so I don't know if that command is available.<br />
<code>netstat -tulnp</code></p>
]]></description><link>https://forums.ubports.com/post/70574</link><guid isPermaLink="true">https://forums.ubports.com/post/70574</guid><dc:creator><![CDATA[mark1250]]></dc:creator><pubDate>Tue, 07 Feb 2023 21:48:32 GMT</pubDate></item><item><title><![CDATA[Reply to Howto autostart ssh on Tue, 07 Feb 2023 21:19:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mark1250" aria-label="Profile: mark1250">@<bdi>mark1250</bdi></a><br />
Thanks, but the service is not starting on boot. The service is not stored in update-rc.d because the error is:<br />
<code>update-rc.d: error: Device or resource busy</code></p>
<p dir="auto">Is there a other solution or way to get access to the update-rc.d ?</p>
]]></description><link>https://forums.ubports.com/post/70573</link><guid isPermaLink="true">https://forums.ubports.com/post/70573</guid><dc:creator><![CDATA[chris_bavaria]]></dc:creator><pubDate>Tue, 07 Feb 2023 21:19:38 GMT</pubDate></item><item><title><![CDATA[Reply to Howto autostart ssh on Tue, 07 Feb 2023 18:31:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chris_bavaria" aria-label="Profile: chris_bavaria">@<bdi>chris_bavaria</bdi></a></p>
<p dir="auto"><code>systemctl enable ssh</code> means to start the service at boot time. So if you reboot the phone after entering that the ssh server daemon would start.</p>
<p dir="auto">But, you don't have restart the phone to start the ssh server daemon, you can just  enter<br />
<code>systemctl start ssh</code></p>
<p dir="auto">If you want to do that in one step you can enter<br />
<code>systemctl enable --now ssh</code></p>
]]></description><link>https://forums.ubports.com/post/70572</link><guid isPermaLink="true">https://forums.ubports.com/post/70572</guid><dc:creator><![CDATA[mark1250]]></dc:creator><pubDate>Tue, 07 Feb 2023 18:31:33 GMT</pubDate></item></channel></rss>