You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

ssh with Termius from iPhone over hotspot to Ubuntu robot?

I would like to be able to ssh into my RPi3B+ based robot (running Ubuntu 20.04 64-bit Server) when away from my home WiFi.


I have configured the bot to recognize either my home network or my iPhone hotspot network.

/etc/netplan/50-cloud-init.yaml:

network:
    ethernets:
        eth0:
            dhcp4: true
            optional: true
    version: 2
    wifis:
        wlan0:
            access-points:
                SSIDHOME:
                    password: pwhome
                SSIDHOTSPT:
                    password: pwhotspot
            dhcp4: true
            optional: false

I see that the bot successfully connects to the hotspot.


Launching Termius on the iPhone, I created a host with the hostname of the bot - "ROSbot".


Clicking on the bot in Termius:Hosts shows "(ROSbot:22) Username / Select Identity" dialog, to which I select the desired identity (username/password) on the bot.


Termius reports:

Connection could not be established:
Connecting...
Disconnected
Connection closed with error: unknown node or service


Looking in the /var/log/auth.log there are two sshd entries:

Oct  3 10:24:56 ROSbot sshd[1921]: Server listening on 0.0.0.0 port 22.
Oct  3 10:24:56 ROSbot sshd[1921]: Server listening on :: port 22.


but no successful or failed login attempts are listed like when I remote in when the bot is connected via my home WiFi:

Oct  3 10:41:48 ROSbot sshd[2319]: Accepted password for pi from XX.0.0.XXX port XYZ ssh2
Oct  3 10:41:48 ROSbot sshd[2319]: pam_unix(sshd:session): session opened for user pi by (uid=0)

Any ideas how to debug what is happening and get this to work?

iPhone X

Posted on Oct 3, 2021 10:25 AM

Reply
Question marked as Top-ranking reply

Posted on Oct 3, 2021 12:34 PM

Found a solution:

- install the iNet Pro app

- after bot connects to hotspot, run iNet Pro network scan to determine the bot IP

- Tell Termius the bot's hostname is that IP

- ssh to the bot, authorize the unknown key, and I'm in!

Similar questions

1 reply

ssh with Termius from iPhone over hotspot to Ubuntu robot?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.