How would I ssh to Raspberry Pi from Android Device while it is connected to its hotspot?

2

I have had a Raspberry Pi for a couple months now and it was my first time using Linux (so I'm still pretty new)

What I am trying to achieve here is being able to SSH to my Raspberry Pi (running Rasbian) from my android device (Galaxy S6 Edge running lollipop 5.1.1 (willing to root if necessary)) while it is connected to my androids hotspot. Or maybe the other way around where I connect to a hotspot created by the Raspberry Pi with my phone.

Would that be possible in any way? Perhaps how a Chromcast creates a hotspot for you to connect to in order to set it up. I find that to be a really neat concept, if only I am able to replicate that on a Raspberry Pi.

TheAmazing31

Posted 2016-03-10T02:31:32.970

Reputation: 103

Answers

0

The easiest way would be to get a USB wifi adapter that is able to create a wifi network. You would then connect to the wifi network, and ssh in.

Using a product such as this and editing the settings (example) it will broadcast its own wifi network that the phone can connect to. You can just treat the device as it was on a LAN and ssh to the correct IP.

Eric Johnson

Posted 2016-03-10T02:31:32.970

Reputation: 451

1Would it be that simple? I don't think my phone would recognize the Raspberry Pi as a device on the network but I might be mistaken. I have a USB wifi adapter I used on my computer before with a 3rd party program in order to make it into a hotspot so that shouldn't be an issue. But how would I go about making a hotspot on my Raspberry Pi? – TheAmazing31 – 2016-03-10T02:36:52.463

See my update to my answer. – Eric Johnson – 2016-03-10T02:43:55.347

Thank you. I will try this as soon as I get my hands on the Raspberry Pi :) – TheAmazing31 – 2016-03-10T02:47:17.937