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.


            dhcp4: true
            optional: true
    version: 2
                    password: pwhome
                    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:
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 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?

  • 1
    Hopefully you can do the equivalent of ssh -vv with Termius which would go a long way in identifying the problem, because to me this looks like it is 100% an iOS issue and has nothing much to do with the Raspberry Pi...
    – goldilocks
    Oct 3 at 15:38
  • @goldilocks interesting thought - Termius doesn't allow ssh options. I'll try posting also on the apple iphone forum. Oct 3 at 17:10

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!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.